Minimongo Schema自动生成d.ts文件的工具
minimongo-schema 通过模式文件加载 minimongo dbs Schema 可以生成 d.ts 文件。以下是安装和使用示例:
- 安装依赖:
npm install mizchi/minimongo-schema --save-dev
npm install mizchi/minimongo-schema -g
- 使用 minimongo-scheme-gen 生成类型文件。
示例:
schema.coffee
module.exports = {
databases: [
{
namespace: 'persist',
type: 'indexedDb',
collections: [
{
name: 'A',
params: {
_id: 'string',
},
},
],
},
],
}
警告!请在 狗粮 下使用该工具。
下载地址
用户评论