$ npm install @wrule/prober
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);
ITest_08890C26
import { IA_ArrayItem_31B51A0F } from './a_ArrayItem_31B51A0F';
export interface ITest_08890C26 {
'a': IA_ArrayItem_31B51A0F[];
}
export interface IA_ArrayItem_31B51A0F {
'name': string;
}