vitepress-openapi
Version:
Generate VitePress API Documentation from OpenAPI Specification.
60 lines (59 loc) • 1.76 kB
TypeScript
import type { OpenApiSpecInstance } from '@/lib/spec/createOpenApiSpec';
declare var __VLS_12: {
openapi: OpenApiSpecInstance;
}, __VLS_17: {
openapi: OpenApiSpecInstance;
};
type __VLS_Slots = {} & {
default?: (props: typeof __VLS_12) => any;
} & {
default?: (props: typeof __VLS_17) => any;
};
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
spec: {
type: (ObjectConstructor | StringConstructor)[];
required: false;
default: null;
};
specUrl: {
type: StringConstructor;
required: false;
default: null;
};
openapi: {
type: () => OpenApiSpecInstance | null;
required: false;
default: null;
};
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:spec": (...args: any[]) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
spec: {
type: (ObjectConstructor | StringConstructor)[];
required: false;
default: null;
};
specUrl: {
type: StringConstructor;
required: false;
default: null;
};
openapi: {
type: () => OpenApiSpecInstance | null;
required: false;
default: null;
};
}>> & Readonly<{
"onUpdate:spec"?: ((...args: any[]) => any) | undefined;
}>, {
openapi: OpenApiSpecInstance | null;
spec: string | Record<string, any>;
specUrl: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};