TypeScript Function

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
function funA(numA:number,strA:string,booA:boolean):void{  
  
}  
  
function funB(numA:number):Promise<number>{  
    return new Promise((resolve,reject)=>{  
        resolve(numA);  
    })}

interface sumFunc{  
    (numA:number,strA:string,booA:boolean):void  
}
Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy