Skip to content

TypeScript

基本语法

array 类型 const foo = [] as string[]

key-value object 类型声明

ts
items: {
  [key: string]: any;
}

Released under the CC-BY-NC-4.0