@scalar/api-client
Version:
the open source API testing client
32 lines • 1.2 kB
TypeScript
/**
* This component takes in any value and emits it back
*
* This is useful when we need to catch the open state of a disclosure from its v-slot
*/
declare const _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
value: T;
} & {
onChange?: ((value: T) => any) | undefined;
onUnmount?: (() => any) | undefined;
}> & (typeof globalThis extends {
__VLS_PROPS_FALLBACK: infer P;
} ? P : {});
expose: (exposed: {}) => void;
attrs: any;
slots: {};
emit: {
(e: "change", value: T): void;
(e: "unmount"): void;
};
}>) => import("vue").VNode & {
__ctx?: Awaited<typeof __VLS_setup>;
};
type __VLS_PrettifyLocal<T> = (T extends any ? {
[K in keyof T]: T[K];
} : {
[K in keyof T as K]: T[K];
}) & {};
//# sourceMappingURL=ValueEmitter.vue.d.ts.map