0.1.8 • Published 4 years ago

@wrule/prober v0.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Install

$ npm install @wrule/prober

Usage

Code

const path = require('path');
const { Prober } = require('@wrule/prober');

const obj = {
  a: [{name: 'kim'}, {name: 'jim'}]
};
const dstPath = path.join(__dirname, 'output');

const prober = new Prober();
const type = prober.Update(obj, 'test', dstPath);
console.log(type.TypeDesc);

Output

Console

ITest_08890C26

Generated code

import { IA_ArrayItem_31B51A0F } from './a_ArrayItem_31B51A0F';

export interface ITest_08890C26 {
  'a': IA_ArrayItem_31B51A0F[];
}
export interface IA_ArrayItem_31B51A0F {
  'name': string;
}
0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago