功能:TypeScript类型验证和值处理

女性使用正确的TypeScript类型验证和零相关性来处理值。验证:检查一个值(例如:检查值是否为字符串)。消毒:如果值无效,请尝试对其进行转换(例如:将值转换为Date)。转换:转换一个值(例如:解析JSON)。一切都是功能:功能性方法可以轻松扩展–只需在任何地方插入您自己的功能即可!安装npm install fefe。用法:验证示例验证仅检查提供的值,并以正确的类型返回它。import { object, string } from 'fefe'。const validatePerson = object({ name :

zip
fefe-master.zip 预估大小:38个文件
folder
fefe-master 文件夹
folder
src 文件夹
file
parse-number.test.ts 364B
file
union.test.ts 638B
file
parse-date.ts 608B
file
object.ts 3KB
file
index.ts 544B
file
union.ts 547B
file
parse-boolean.ts 418B
file
errors.ts 1KB
file
parse-number.ts 362B
file
parse-json.test.ts 378B
file
object.test.ts 3KB
file
boolean.ts 257B
file
date.ts 611B
file
array.test.ts 1KB
file
parse-date.test.ts 653B
file
enumerate.ts 284B
file
enumerate.test.ts 562B
file
number.test.ts 1KB
file
array.ts 926B
file
parse-boolean.test.ts 436B
file
boolean.test.ts 347B
file
string.test.ts 893B
file
string.ts 760B
file
index.test.ts 4KB
file
number.ts 941B
file
parse-json.ts 377B
file
validate.ts 49B
file
date.test.ts 1KB
file
.travis.yml 223B
file
tsconfig.json 255B
file
LICENSE 1KB
file
tslint.json 42B
file
README.md 7KB
file
.gitignore 61B
file
CHANGELOG.md 285B
file
package-lock.json 89KB
file
package.json 1KB
file
.nycrc 176B
zip 文件大小:43.46KB