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