typed-path:键入打字稿的安全对象字段字符串路径

时间:2024-05-22 07:06:16
【文件属性】:

文件名称:typed-path:键入打字稿的安全对象字段字符串路径

文件大小:404KB

文件格式:ZIP

更新时间:2024-05-22 07:06:16

typescript path lodash TypeScript

输入路径 概述 这个小实用程序有助于从TypeScript类,接口或类型中提取类型信息,以在代码中使用它。 例子: import { typedPath } from 'typed-path' ; type TestType = { a : { testFunc : ( ) => { result : string } ; b: { arrayOfArrays: string [ ] [ ] ; c : { d : number ; } ; } [ ] ; } ; } ; console . log ( typedPath < TestType> ( ) . a . b [ 5 ] . c . d . $rawPath


【文件预览】:
typed-path-master
----codecov.yml(325B)
----tsconfig.dist.json(334B)
----yarn.lock(171KB)
----index.ts(4KB)
----.travis.yml(376B)
----tsconfig.json(389B)
----LICENSE(584B)
----jest.config.js(105B)
----.prettierrc(165B)
----tslint.json(2KB)
----README.md(6KB)
----dist()
--------index.test-d.ts(1KB)
----docs()
--------testSuccess.ts(407B)
--------testFail.ts(988B)
--------string-refactoring.gif(58KB)
--------tp-suggestions.gif(244KB)
--------testSuggestions.ts(392B)
--------tp-refactoring.gif(56KB)
----.editorconfig(131B)
----index.spec.ts(4KB)
----.gitignore(69B)
----package.json(1KB)

网友评论