Implement.js

时间:2024-06-06 02:34:53
【文件属性】:
文件名称:Implement.js
文件大小:80KB
文件格式:ZIP
更新时间:2024-06-06 02:34:53
JavaScript Implement.js 创建用于强制,删除或重命名对象属性的接口 用于测试以轻松验证对象的形状和属性类型 通过重命名或删除属性轻松,安全地解析API响应 当process.env.NODE_ENV === 'production'时,错误和警告被抑制 文件 什么是Implement.js? Implement.js是一个库,尝试以运行时类型检查的形式将接口引入JavaScript。 只需使用Interface定义一个Interface然后在对象上调用implement即可检查它是否实现了给定的接口。 const Hello = { greeting : 'hello' , wave ( ) { } } const Introduction = Interface ( 'Introduction' ) ( { greeting : type ( 'stri
【文件预览】:
Implement.js-master
----.gitignore(23B)
----README.md(6KB)
----test()
--------type.js(5KB)
--------index.js(76B)
--------errors.js(692B)
--------implement.js(8KB)
--------Interface.js(4KB)
----yarn-error.log(123KB)
----.eslintrc(73B)
----package.json(1KB)
----src()
--------type()
--------utils()
--------constants.js(945B)
--------implement()
--------Interface()
--------index.js(130B)
--------errors()
----.babelrc(71B)
----.eslintignore(8B)
----.npmignore(83B)
----webpack.config.js(754B)
----yarn.lock(116KB)

网友评论