@pnp/odata
Version:
pnp - provides shared odata functionality and base classes
12 lines • 464 B
TypeScript
/**
* Adds a property to a target instance
*
* @param target The object to whose prototype we will add a property
* @param name Property name
* @param factory Factory method used to produce the property value
* @param path Any additional path required to produce the value
*/
export declare function addProp<T, U>(target: {
prototype: any;
}, name: string, factory: (arg: U, p?: string) => T, path?: string): void;
//# sourceMappingURL=add-prop.d.ts.map