-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
47 lines (47 loc) · 1.06 KB
/
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
42
43
44
45
46
47
export interface IModels {
name: string;
description: string;
contentType: string;
schema: object | any[];
examples: any[];
example: object;
}
export interface IDefinitionConfig {
title: string;
description: string;
version?: string;
models: IModels[];
}
export interface IDefinitionType {
file: string;
format: 'yaml' | 'json';
indent: number;
}
export interface IServerlessFunctionConfig {
_functionName: string;
handler: string;
description?: string;
environment?: object;
events?: any[];
}
export interface IParameterConfig {
name: string;
in: 'path' | 'query' | 'header' | 'cookie';
description: string;
required?: boolean;
schema?: object;
deprecated?: boolean;
allowEmptyValue?: boolean;
style?: 'form' | 'simple';
explode?: boolean;
allowReserved?: boolean;
example?: any;
examples?: [any];
}
export interface IDefinition {
openapi: string;
components: any;
info: any;
paths: any;
}
export declare type ILog = (...str: string[]) => void;