Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 141 Bytes

typescript小满.md

File metadata and controls

12 lines (10 loc) · 141 Bytes

接口和对象类型

函数接口

interface Fn{
	(name:string):number[]
}

const fn:Fn=function(name:string){
	return [1]
}