@devcycle/nodejs-server-sdk
Version:
The DevCycle NodeJS Server SDK used for feature management.
10 lines (9 loc) • 996 B
TypeScript
import { DVCVariable, DVCVariableValue } from '../../src/';
import { HookContext } from './HookContext';
export declare class EvalHook {
readonly before: <T extends DVCVariableValue>(context: HookContext<T>) => HookContext<T> | void;
readonly after: <T extends DVCVariableValue>(context: HookContext<T>, variableDetails: DVCVariable<T>) => void;
readonly onFinally: <T extends DVCVariableValue>(context: HookContext<T>, variableDetails: DVCVariable<T> | undefined) => void;
readonly error: <T extends DVCVariableValue>(context: HookContext<T>, error: Error) => void;
constructor(before: <T extends DVCVariableValue>(context: HookContext<T>) => HookContext<T> | void, after: <T extends DVCVariableValue>(context: HookContext<T>, variableDetails: DVCVariable<T>) => void, onFinally: <T extends DVCVariableValue>(context: HookContext<T>, variableDetails: DVCVariable<T> | undefined) => void, error: <T extends DVCVariableValue>(context: HookContext<T>, error: Error) => void);
}