UNPKG

663 BTypeScriptView Raw
1import { ISpecificationExtension } from './specification-extension';
2export interface ServerObject extends ISpecificationExtension {
3 url: string;
4 description?: string;
5 variables?: {
6 [v: string]: ServerVariableObject;
7 };
8}
9export interface ServerVariableObject extends ISpecificationExtension {
10 enum?: string[] | boolean[] | number[];
11 default: string | boolean | number;
12 description?: string;
13}
14export declare function getExtension(obj: ISpecificationExtension | undefined, extensionName: string): any;
15export declare function addExtension(obj: ISpecificationExtension | undefined, extensionName: string, extension: any): void;