sanctuary-def:JavaScript的运行时类型系统

时间:2021-03-11 22:07:42
【文件属性】:
文件名称:sanctuary-def:JavaScript的运行时类型系统
文件大小:53KB
文件格式:ZIP
更新时间:2021-03-11 22:07:42
系统开源 避难所 sanctuary-def是JavaScript的运行时类型系统。 它有助于定义咖喱JavaScript函数,这些函数明确地说明了可以应用它们的参数的数量以及这些参数的类型。 通常将软件包导入为$ : const $ = require ( 'sanctuary-def' ) ; 下一步是定义环境。 环境是的数组。 是包含所有内置JavaScript类型的环境。 它可以用作包含自定义类型以及内置类型的环境的基础: // Integer :: Type const Integer = '...' ; // NonZeroInteger :: Type const NonZeroInteger = '...' ; // env :: Array Type const env = $ . env . concat ( [ Integer , NonZeroInt
【文件预览】:
sanctuary-def-master
----.eslintrc.json(1KB)
----.github()
--------FUNDING.yml(24B)
--------CONTRIBUTING.md(688B)
----scripts()
--------prepublish(209B)
--------test(125B)
----.circleci()
--------config.yml(986B)
----LICENSE(1KB)
----test()
--------internal()
--------NODE_ENV.js(3KB)
--------module.mjs(180B)
--------index.js(119KB)
--------mocha.opts(9B)
----README.md(37KB)
----.npmrc(19B)
----.gitignore(40B)
----index.js(93KB)
----.config(96B)
----package.json(874B)

网友评论