I write this in the vscode and there is no error and warning. But I wonder if this type can be instantiated, if so, please give me an example, thanks!
type MyFunction = {
(x:any):boolean;
(x:any, y:any):boolean;
desc:string;
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I write this in the vscode and there is no error and warning. But I wonder if this type can be instantiated, if so, please give me an example, thanks!
type MyFunction = {
(x:any):boolean;
(x:any, y:any):boolean;
desc:string;
}