@devcycle/js-client-sdk
Version:
The Javascript Client SDK for DevCycle
10 lines (9 loc) • 595 B
TypeScript
import { HookContext } from './HookContext';
import { DVCVariableValue } from '../types';
export declare class EvalHook<T extends DVCVariableValue> {
readonly before: (context: HookContext<T>) => void;
readonly after: (context: HookContext<T>) => void;
readonly onFinally: (context: HookContext<T>) => void;
readonly error: (context: HookContext<T>, error: Error) => void;
constructor(before: (context: HookContext<T>) => void, after: (context: HookContext<T>) => void, onFinally: (context: HookContext<T>) => void, error: (context: HookContext<T>, error: Error) => void);
}