ts-pro:TypeScript的高级实用程序类型

时间:2021-04-01 07:56:44
【文件属性】:
文件名称:ts-pro:TypeScript的高级实用程序类型
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-01 07:56:44
TypeScript ts-pro TypeScript的高级实用程序类型 安装 # NPM npm install ts-pro # YARN yarn add ts-pro P_清单 列表—波纹或任何数组。 所有类型都首先应用于元组,并且在不匹配的情况下,将应用于其余的常见数组。 Head [0] - [ ] - [ ] - [ ] - ... Head(List) ^ never是列表的第一个元素 P_List . Head < string> ; // string | undefined (undefined for empty array) P_List . Head < [ 'a' , 1 , null ] > ; // 'a' P_List . Head < [ ] > ; // never Tail [ ] - [0] - [0] - [0] - ..
【文件预览】:
ts-pro-master
----.gitignore(28B)
----package.json(559B)
----package-lock.json(428B)
----src()
--------list.ts(4KB)
--------array.ts(3KB)
--------options.ts(835B)
--------object.ts(613B)
--------turple.ts(4KB)
--------function.ts(3KB)
--------index.ts(183B)
--------logical.ts(43B)
----LICENSE(1KB)
----tsconfig.json(343B)
----.github()
--------ISSUE_TEMPLATE()
----README.md(5KB)
----tsconfig.build.json(71B)
----.npmignore(30B)
----.editorconfig(175B)

网友评论