d76000a1e4
- 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
19 lines
539 B
JavaScript
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); },
|
|
};
|