flow-infer-type:从给定对象推断并生成类型

时间:2024-06-17 07:50:56
【文件属性】:

文件名称:flow-infer-type:从给定对象推断并生成类型

文件大小:35KB

文件格式:ZIP

更新时间:2024-06-17 07:50:56

flow inference flowtype infers JavaScript

关于 从给定对象生成流类型。 安装 npm i -g flow-infer-type 用法 一个人也可以以编程方式与所有shell脚本一起使用。 您可以用来推断任何REST对象的形状-如API: curl ' https://dev.api.simpego.ch/products ' --compressed | jq .[0] | node flow-infer-type 杰森 echo ' {"a": "ssss"} ' | node flow-infer-type 将生成有效的流(/可能是打字稿)定义 { a: string } Js对象 echo ' {a: 42} ' | node flow-infer-type 将产生: { a: number } 或者 剪贴板 复制粘贴剪贴板中的对象 pbpaste | node flow-infer-type 测试


【文件预览】:
flow-infer-type-master
----.flowconfig(58B)
----src()
--------bin.js(459B)
--------index.js(1KB)
----.babelrc(25B)
----.travis.yml(137B)
----test()
--------test.js(2KB)
--------test.sh(309B)
--------test.array.js(703B)
----dist()
--------bin.js(463B)
--------index.js(1KB)
----.gitignore(951B)
----readme.md(849B)
----package-lock.json(143KB)
----package.json(1KB)

网友评论