没有合适的资源?快使用搜索试试~ 我知道了~
TypeType旨在轻松生成复杂的打字稿类型。-JavaScript开发
共201个文件
json:78个
tsx:22个
ts:18个
需积分: 5 0 下载量 61 浏览量
2021-05-26
05:26:11
上传
评论
收藏 141KB ZIP 举报
温馨提示
TypeType旨在轻松生成复杂的打字稿类型。 TypeType·TypeType旨在轻松生成复杂的打字稿类型。 用法> npm i -D @ mistlog / typetype import {transform} from“ @ mistlog / typetype”; const input =`类型函数TypeName =(T)=> ^ {if(T扩展字符串){返回“ string”} else {返回“ number”}}`;; const输出= transform(input).code; console.log(输出); //输出:Type TypeName = T扩展字符串? “ string”:“ number”; 回购示例:htt
资源推荐
资源详情
资源评论
收起资源包目录
TypeType旨在轻松生成复杂的打字稿类型。-JavaScript开发 (201个子文件)
ArrayType 8B
ArrayType-Any 5B
ArrayType-Deep 10B
ArrayType-Readonly 17B
ConditionalTypeExpression 43B
ConditionalTypeExpression-2 65B
Example-_isNumberString 381B
Example-_isNumberString 159B
Example-comment 546B
Example-isNumberString 154B
Example-isNumberString 76B
Example-parseAuthority 307B
Example-parseAuthority 174B
Example-parseHost 332B
Example-parseHost 160B
Example-parsePort 150B
Example-parsePort 72B
Example-parseProtocol 222B
Example-parseProtocol 120B
Example-parseURL 244B
Example-parseURL 141B
Example-parseURL-2 222B
Example-parseURL-2 129B
Example-parseUserInfo 202B
Example-parseUserInfo 152B
Example-pick 166B
Example-pick 66B
Example-readonly 162B
Example-readonly 62B
FunctionType 10B
FunctionType-Constructor 24B
FunctionType-Nested 36B
FunctionType-OptionalParam 33B
FunctionType-Params 32B
FunctionType-Rest 24B
FunctionType-TypeParam 47B
.gitignore 29B
IndexType 8B
IndexType-Deep 11B
IntersectionType 11B
jest.config.js 129B
package-lock.json 220KB
Example-parseHost.json 8KB
Example-parseAuthority.json 7KB
Example-_isNumberString.json 7KB
Example-comment.json 7KB
Example-parseUserInfo.json 5KB
Example-parseURL.json 5KB
Example-parseURL-2.json 5KB
Example-parseProtocol.json 5KB
Example-pick.json 3KB
TypeFunctionDeclaration-TemplateTypeLiteral.json 3KB
Example-readonly.json 3KB
Example-isNumberString.json 2KB
Example-parsePort.json 2KB
TypeFile.json 2KB
ObjectType-CallSignature.json 2KB
TypeFunctionDeclaration-DefaultParam.json 2KB
TypeFunctionDeclaration-Infer.json 2KB
TypeFunctionDeclaration.json 2KB
TypeFunctionDeclaration-Export.json 2KB
ConditionalTypeExpression-2.json 2KB
MappedType-As.json 1KB
ObjectType.json 1KB
TypeVariableDeclaration-KeyOf.json 1KB
FunctionType-TypeParam.json 1KB
TypeArrowFunctionExpression-Infer.json 1KB
TypeVariableDeclaration-ConditionalType.json 1KB
TypeArrowFunctionExpression-WithParams.json 1KB
package.json 1KB
TypeVariableDeclaration-Function.json 1KB
TemplateTypeLiteral-2.json 1KB
TypeArrowFunctionExpression.json 988B
MappedType.json 972B
KeyOfType.json 894B
OperatorType.json 894B
FunctionType-Nested.json 865B
ConditionalTypeExpression.json 791B
ObjectType-Spread.json 757B
FunctionType-OptionalParam.json 711B
TypeIfStatement.json 705B
TemplateTypeLiteral-4.json 682B
FunctionType-Params.json 681B
FunctionType-Rest.json 555B
ParenthesizedType.json 534B
TupleType-Readonly.json 516B
ObjectType-Shorthand.json 492B
TupleType-Rest.json 475B
FunctionType-Constructor.json 451B
ImportDeclaration-3.json 424B
ImportDeclaration-2.json 424B
TemplateTypeLiteral.json 420B
ObjectType-Modifier.json 391B
TupleType.json 386B
ParamList.json 383B
TypeCallExpression.json 380B
TupleType-Infer.json 378B
IndexType-Deep.json 368B
tsconfig.json 355B
TypeVariableDeclaration.json 322B
共 201 条
- 1
- 2
- 3
资源评论
weixin_42097189
- 粉丝: 38
- 资源: 4567
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功