UNPKG

egg-ts-helper

Version:
11 lines (8 loc) 414 B
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);