egg-ts-helper
Version:
egg typescript helper
11 lines (8 loc) • 414 B
text/typescript
import { TsGenConfig, TsHelperConfig } from '..';
import * as utils from '../utils';
import ClassGenerator from './class';
export default function ObjectGenerator(config: TsGenConfig, baseConfig: TsHelperConfig) {
config.interfaceHandle = config.interfaceHandle || 'typeof {{ 0 }}';
return ClassGenerator(config, baseConfig);
}
ObjectGenerator.defaultConfig = utils.extend({}, ClassGenerator.defaultConfig);