@fefade/vue
Version:
Reusable Vue UI components powered by the FEFADE core system.
7 lines (6 loc) • 356 B
TypeScript
import { Ref } from 'vue';
export type ActionType<T extends HTMLElement = HTMLElement, P = any> = (node: T, props?: P) => {
update?: (props: P) => void;
destroy?: () => void;
} | void;
export default function actionUtil<T extends HTMLElement = HTMLElement, P = any>(action: ActionType<T, P>, props?: P, externalRef?: Ref<T | null>): Ref<T | null>;