printer-notifications/node_modules/@skeletonlabs/skeleton/dist/internal/transitions.d.ts
2023-11-13 16:10:04 -05:00

11 lines
486 B
TypeScript

import type { TransitionConfig } from 'svelte/transition';
export declare function dynamicTransition<T extends Transition>(node: Element, dynParams: DynamicTransitionParams<T>): TransitionConfig;
type DynamicTransitionParams<T extends Transition> = {
transition: T;
params: TransitionParams<T>;
enabled: boolean;
};
export type Transition = (node: Element, params?: any) => TransitionConfig;
export type TransitionParams<T extends Transition> = Parameters<T>[1];
export {};