期望:使用TypeScript编写的提供参数验证的Node.js库

时间:2021-02-14 14:05:22
【文件属性】:
文件名称:期望:使用TypeScript编写的提供参数验证的Node.js库
文件大小:99KB
文件格式:ZIP
更新时间:2021-02-14 14:05:22
validation expect argument TypeScript @ fantasticfiasco /期望 用TypeScript编写的提供参数验证的Node.js库。 目录 超级简单易用 import * as expect from '@fantasticfiasco/expect' ; function update ( person ) { expect . toExist ( person . name ) ; expect . toBeTrue ( person . age >= 0 , 'existential theories are not up for discussion' ) ; // Squint your eyes and imagine your code here... } 安装 npm install @fantasticfiasco/expect # or yarn add @fantast
【文件预览】:
expect-master
----.gitignore(210B)
----.gitmind(148B)
----package.json(2KB)
----tslint.json(1KB)
----src()
--------ExpectationError.ts(96B)
--------index.ts(62B)
--------Expect.ts(3KB)
----jest.config.js(70B)
----LICENSE(11KB)
----doc()
--------resources()
----CHANGELOG.md(1KB)
----tsconfig.json(302B)
----.github()
--------PULL_REQUEST_TEMPLATE.md(601B)
--------ISSUE_TEMPLATE()
--------CONTRIBUTING.md(6KB)
--------CODE_OF_CONDUCT.md(3KB)
--------workflows()
----scripts()
--------github.js(1KB)
--------npm.js(1KB)
--------log.js(595B)
--------process.js(442B)
--------github-actions.js(451B)
--------release.js(2KB)
--------publish-on-tag.js(2KB)
--------git.js(586B)
----README.md(3KB)
----.vscode()
--------settings.json(477B)
----.npmignore(93B)
----.gitattributes(14B)
----renovate.json(68B)
----test()
--------Expect.spec.ts(7KB)
----.editorconfig(258B)
----yarn.lock(175KB)

网友评论