-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
41 lines (38 loc) · 881 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export declare type ApiType = 'RAML 1.0' | 'RAML 0.8' | 'OAS 2.0' | 'OAS 3.0' | 'ASYNC 2.0';
export declare interface ApiConfiguration {
/**
* The type of the API file
*/
type: ApiType;
/**
* The API mime type
* @default application/yaml
*/
mime?: string;
/**
* The resolution pipeline to use when processing the API.
* @default editing
*/
resolution?: string;
/**
* Whether to apply flattened to render options
* @default false
*/
flattened?: boolean;
}
export declare interface ApiGenerationOptions {
/**
* The directory where APIs are located.
* @default "demo/"
*/
src?: string;
/**
* The directory where to create the files.
* @default "demo/"
*/
dest?: string;
}
export declare interface FilePrepareResult {
opts: ApiGenerationOptions;
files: Map<string, ApiConfiguration|string|string[]>;
}