@scalar/api-client
Version:
the open source API testing client
38 lines • 1.59 kB
TypeScript
import type { WorkspaceStore } from '@scalar/workspace-store/client';
/**
* Command Palette Example Component
*
* Provides a form for creating a new example for an API operation.
* Users can name the example, select a document (collection), and choose an operation.
* Automatically navigates to the example route which creates the example.
*
* @example
* <CommandPaletteExample
* :workspaceStore="workspaceStore"
* @close="handleClose"
* @back="handleBack"
* />
*/
declare const _default: import("vue").DefineComponent<{
/** The workspace store for accessing documents and operations */
workspaceStore: WorkspaceStore;
/** Document id to create the example for */
documentId?: string;
/** Preselected path and method to create the example for */
operationId?: string;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
close: () => any;
back: (keyboardEvent: KeyboardEvent) => any;
}, string, import("vue").PublicProps, Readonly<{
/** The workspace store for accessing documents and operations */
workspaceStore: WorkspaceStore;
/** Document id to create the example for */
documentId?: string;
/** Preselected path and method to create the example for */
operationId?: string;
}> & Readonly<{
onClose?: (() => any) | undefined;
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
export default _default;
//# sourceMappingURL=CommandPaletteExample.vue.d.ts.map