Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 357 Bytes
/**
* 函数接口
*
* @example interface interfaceName {
* (参数...): T
* }
*/
interface userInfo {
(username: string, mobile: number): object;
}
let getUserinfo: userInfo;
getUserinfo = function (username, mobile) {
console.log(username, mobile)
return {
username,
mobile
}
}
getUserinfo('yaimeet', 123456);
You can’t perform that action at this time.