UNPKG

@scalar/api-client

Version:

the open source API testing client

11 lines 679 B
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'; import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace'; /** * Get the selected server for a document, * we can later expand this to support operation/path servers as well * * If x-scalar-selected-server is undefined we select the first server (this means the user has not selected a server yet) * If the user has un-selected a server it would be an empty string */ export declare const getSelectedServer: (document: WorkspaceDocument | null, servers: ServerObject[] | null) => ServerObject | null; //# sourceMappingURL=get-selected-server.d.ts.map