mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
8 lines
137 B
TypeScript
8 lines
137 B
TypeScript
import one = require('one-time');
|
|
|
|
const fn = (foo: boolean) => {
|
|
return 'bar';
|
|
};
|
|
|
|
one(fn); // $ExpectType (foo: boolean) => string
|