mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
215 B
TypeScript
14 lines
215 B
TypeScript
/// <reference path="once.d.ts" />
|
|
|
|
import once from "once";
|
|
|
|
once(() => 3);
|
|
once(() => 3)();
|
|
let s = once(() => ({foo: 1}))();
|
|
s.foo;
|
|
|
|
once.proto();
|
|
|
|
once(() => 3).called && true;
|
|
once(() => ({foo: 1})).value.foo;
|