Fix jsdoc

This commit is contained in:
Vendicated 2022-10-14 21:40:10 +02:00
parent 296336535f
commit 53794ec180
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3

View File

@ -7,7 +7,7 @@ import { makeLazy } from "./misc";
* @returns Proxy
*
* Note that the example below exists already as an api, see {@link lazyWebpack}
* @example const mod = proxyLazy(makeLazy(() => findByProps("blah"))); console.log(mod.blah);
* @example const mod = proxyLazy(() => findByProps("blah")); console.log(mod.blah);
*/
export function proxyLazy<T>(factory: () => T): T {
const lazy = makeLazy(factory);