UNPKG

@mollahdev/hooks-js

Version:

A simple and efficient EventManager for JavaScript

8 lines (7 loc) 509 B
import { StoreType, HookObject, HookType } from '@/types'; declare const STORE: StoreType; export declare const clearStore: () => void; export declare const hookInsertSort: <T extends HookObject[]>(hooks: T) => T; export declare const addHook: <T extends string>(type: HookType, hookName: T, callback: Function, priority: number, context: unknown) => void; export declare const removeHook: <T extends string>(type: HookType, hookName: T, callback?: Function, context?: unknown) => void; export default STORE;