UNPKG

@scalar/api-client

Version:

the open source API testing client

24 lines 826 B
import type { WorkspaceEventBus } from '@scalar/workspace-store/events'; import type { OperationExampleMeta } from '@scalar/workspace-store/mutators'; type ParameterType = 'path' | 'cookie' | 'header' | 'query'; /** Create parameter event handlers for a given type */ export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta) => { add: (payload: { key?: string; value?: string; }) => void; delete: (payload: { index: number; }) => void; deleteAll: () => void; update: (payload: { index: number; payload: Partial<{ key: string; value: string; isEnabled: boolean; }>; }) => void; }; export {}; //# sourceMappingURL=create-parameter-handlers.d.ts.map