UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

7 lines • 914 B
import { HooksCommand } from "../core/hooks/hooks-command"; import type * as types from "../types"; export declare const createFilterCommand: <T1, T2 = null>() => types.hooks.CommandFilter<T1, T2>; export declare const createNamedFilterCommand: <T1 extends Parameters<typeof HooksCommand.createNamedFilter>[0]>(name: T1) => types.hooks.FiltersReturnType<T1> extends Promise<any> ? types.hooks.CommandFilter<Promise<types.hooks.FilterParameters<T1>[0]>, types.hooks.CommandFilterSecondParam<T1>> : types.hooks.CommandFilter<types.hooks.FilterParameters<T1>[0], types.hooks.CommandFilterSecondParam<T1>>; export declare const createActionCommand: <P>() => types.hooks.CommandAction<P>; export declare const createNamedActionCommand: <T1 extends Parameters<typeof HooksCommand.createNamedAction>[0]>(name: T1) => types.hooks.CommandAction<types.hooks.ActionParameters<T1>>; //# sourceMappingURL=hooks-command.d.ts.map