UNPKG

464 BTypeScriptView Raw
1/**
2 * Adds a property to a target instance
3 *
4 * @param target The object to whose prototype we will add a property
5 * @param name Property name
6 * @param factory Factory method used to produce the property value
7 * @param path Any additional path required to produce the value
8 */
9export declare function addProp<T, U>(target: {
10 prototype: any;
11}, name: string, factory: (arg: U, p?: string) => T, path?: string): void;
12//# sourceMappingURL=add-prop.d.ts.map
\No newline at end of file