forked from api-components/api-model-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
18 lines (15 loc) · 783 Bytes
/
Copy pathindex.d.ts
File metadata and controls
18 lines (15 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { ApiGenerationOptions, ApiConfiguration } from './types';
/**
* @param init If string then this is a location of the file that holds processing configuration. Otherwise it is already prepared configuration.
* @param opts Processing options.
*/
declare function mainFn(init: string|Map<string, ApiConfiguration|string|string[]>, opts?: ApiGenerationOptions): Promise<void>;
declare namespace mainFn {
/**
* Runs the default function and exists the process when failed.
* @param {Map<string, ApiConfiguration>} init The list of files to parse with their configuration.
* @param {ApiGenerationOptions=} opts Optional parsing options.
*/
function generate(init: Map<string, ApiConfiguration>, opts?: ApiGenerationOptions): Promise<void>;
}
export = mainFn;