UNPKG

796 BTypeScriptView Raw
1import { ServerObject, ServerVariableObject } from './oas-common';
2import { IExtensionName, IExtensionType } from './specification-extension';
3export declare class Server implements ServerObject {
4 url: string;
5 description?: string;
6 variables: {
7 [v: string]: ServerVariable;
8 };
9 [k: IExtensionName]: IExtensionType;
10 constructor(url: string, desc?: string);
11 addVariable(name: string, variable: ServerVariable): void;
12}
13export declare class ServerVariable implements ServerVariableObject {
14 enum?: string[] | boolean[] | number[];
15 default: string | boolean | number;
16 description?: string;
17 [k: IExtensionName]: IExtensionType;
18 constructor(defaultValue: string | boolean | number, enums?: string[] | boolean[] | number[], description?: string);
19}