Archived
1
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
api-ts-gen/dist/Config.js
supmiku39 d76000a1e4 [v2.0.0] simplify generated code, change some types
- merge all APIPromise class
- remove IServerAPI and IClientAPI
- remove res Object, return [status, body] in ServerAPI instead
- remove schema classes, use interface instead
- `-s` flag for `ctx.state` interface path
2020-04-15 07:45:51 +09:00

19 lines
539 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.configDefault = {
// format
interfacePrefix: 'I',
indentString: ' ',
// name
schemasName: 'schemas',
IHandlerName: 'IHandler',
ClientAPIName: 'ClientAPI',
routerName: 'apiRouter',
// TS path
ServerAPITSPath: '#ServerAPI',
utilsTSPath: '@supmiku39/api-ts-gen/utils',
stateTSPath: null,
// other
outputDir: 'api/generated',
validateStatus: function (status) { return /^2..$/.test(status); },
};