vitepress-openapi
Version:
Generate VitePress API Documentation from OpenAPI Specification.
61 lines (60 loc) • 1.8 kB
TypeScript
import type { OpenApiSpecInstance } from '@/lib/spec/createOpenApiSpec';
declare var __VLS_16: {
openapi: OpenApiSpecInstance;
}, __VLS_24: {
openapi: OpenApiSpecInstance;
};
type __VLS_Slots = {} & {
default?: (props: typeof __VLS_16) => any;
} & {
default?: (props: typeof __VLS_24) => any;
};
declare const __VLS_base: 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 __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};