@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
5 lines • 592 B
TypeScript
import type * as types from "../types/";
export declare function hook(name: string): (target: any) => void;
export declare function filter<T extends Record<string, any> = types.hooks.Filters, K extends keyof T = keyof T>(eventName: K, priority?: number): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T[K]>) => void;
export declare function action<T extends Record<string, any> = types.hooks.Actions, K extends keyof T = keyof T>(eventName: K): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T[K]>) => void;
//# sourceMappingURL=hooks.d.ts.map