mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
10 lines
423 B
TypeScript
10 lines
423 B
TypeScript
// Type definitions for define-lazy-prop 1.0
|
|
// Project: https://github.com/sindresorhus/define-lazy-prop#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
export = defineLazyProp;
|
|
|
|
declare function defineLazyProp<O extends object, P extends string, T>(obj: O, prop: P, fn: () => T): O & {[K in P]: T};
|