mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
once
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// <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;
|
||||
Reference in New Issue
Block a user