UNPKG

@wordpress/hooks

Version:
8 lines (7 loc) 677 B
{ "version": 3, "sources": ["../src/types.ts"], "sourcesContent": ["export type { Hooks } from './createHooks';\n\nexport type Callback = ( ...args: any[] ) => any;\n\nexport type Handler = {\n\tcallback: Callback;\n\tnamespace: string;\n\tpriority: number;\n};\n\nexport type Hook = {\n\thandlers: Handler[];\n\truns: number;\n};\n\nexport type Current = {\n\tname: string;\n\tcurrentIndex: number;\n};\n\nexport type HookInfo = {\n\tname: string;\n\tcurrentIndex: number;\n};\n\nexport type Store = Record< string, Hook > & { __current: Set< Current > };\n\nexport type StoreKey = 'actions' | 'filters';\n"], "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;", "names": [] }