surrogate
Version:
Object method hooks made easy
13 lines (12 loc) • 386 B
TypeScript
import type { Surrogate, SurrogateOptions } from '../interfaces';
/**
* Helper function to create Surrogate wrapped objects
*
* @export
* @template T
* @param {T} object
* @param {SurrogateOptions} [options={}]
* @returns {Surrogate<T>}
*/
export declare const wrapSurrogate: <T extends object>(object: T, options?: SurrogateOptions) => Surrogate<T>;
export * from './handler';