UNPKG

@scalar/api-client

Version:

the open source API testing client

33 lines 1.31 kB
/** * Watch Mode Toggle Component * * A toggle switch for enabling/disabling watch mode on URL imports. * When enabled, the API client automatically updates when the OpenAPI URL * content changes, ensuring the client remains up-to-date. * * Supports v-model for two-way binding and can be disabled when needed * (e.g., when importing from files instead of URLs). * * @example * <WatchModeToggle * v-model="watchMode" * :disabled="!isUrlImport" * /> */ declare const _default: import("vue").DefineComponent<{ /** Whether watch mode is currently enabled */ modelValue: boolean; /** Whether the toggle is disabled (e.g., for non-URL imports) */ disabled?: boolean; }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { "update:modelValue": (value: boolean) => any; }, string, import("vue").PublicProps, Readonly<{ /** Whether watch mode is currently enabled */ modelValue: boolean; /** Whether the toggle is disabled (e.g., for non-URL imports) */ disabled?: boolean; }> & Readonly<{ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; export default _default; //# sourceMappingURL=WatchModeToggle.vue.d.ts.map