@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
9 lines • 771 B
TypeScript
import type * as types from "../../types";
export declare class HooksCommand {
static createFilter<T1, T2 = null>(): types.hooks.CommandFilter<T1, T2>;
static createNamedFilter<T1 extends keyof types.hooks.Filters>(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>>;
static createAction<P>(): types.hooks.CommandAction<P>;
static createNamedAction<T1 extends keyof types.hooks.Actions>(name: T1): types.hooks.CommandAction<types.hooks.ActionParameters<T1>>;
}
//# sourceMappingURL=hooks-command.d.ts.map