UNPKG

@scalar/api-reference

Version:

Generate beautiful API references from OpenAPI documents

23 lines 924 B
import type { ApiReferencePlugin as OriginalApiReferencePlugin, SpecificationExtension, ViewComponent } from '@scalar/types/api-reference'; export type ApiReferencePlugin = OriginalApiReferencePlugin; type CreatePluginManagerParams = { plugins?: ApiReferencePlugin[]; }; /** * Create the plugin manager store * * This store manages all plugins registered with the API client */ export declare const createPluginManager: ({ plugins }: CreatePluginManagerParams) => { /** * Get all extensions with the given name from registered plugins */ getSpecificationExtensions: (name: `x-${string}`) => SpecificationExtension[]; /** * Get all components for a specific view from registered plugins */ getViewComponents: (viewName: "content.end") => ViewComponent[]; }; export type PluginManager = ReturnType<typeof createPluginManager>; export {}; //# sourceMappingURL=plugin-manager.d.ts.map