UNPKG

pyro

Version:
40 lines (39 loc) 1.05 kB
import { TargetValueEvent } from '../types'; import { DefineComponent } from 'vue'; import { HTMLAttributes } from 'svelte/elements'; export interface SwitchProps { /** Checked */ checked?: boolean; /** Disabled */ disabled?: boolean; onInput?: (e: TargetValueEvent) => void; } declare module 'vue' { interface GlobalComponents { 'pyro-switch': DefineComponent<SwitchProps>; } } interface PyroSwitchPreact extends Omit<JSX.HTMLAttributes, keyof SwitchProps>, SwitchProps { } declare module 'preact/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'pyro-switch': PyroSwitchPreact; } } } interface PyroSwitchSvelte extends Omit<HTMLAttributes<any>, keyof SwitchProps>, SwitchProps { } declare module 'svelte/elements' { interface SvelteHTMLElements { 'pyro-switch': PyroSwitchSvelte; } } declare module 'solid-js' { namespace JSX { interface IntrinsicElements { 'pyro-switch': PyroSwitchPreact; } } } export {};