source: frontend/node_modules/is-generator-fn/index.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 549 bytes
Line 
1declare const isGeneratorFn: {
2 /**
3 Check if something is a generator function.
4
5 @example
6 ```
7 import isGeneratorFn = require('is-generator-fn');
8
9 isGeneratorFn(function * () {});
10 //=> true
11
12 isGeneratorFn(function () {});
13 //=> false
14 ```
15 */
16 (value: unknown): value is GeneratorFunction;
17
18 // TODO: Remove this for the next major release, refactor the whole definition to:
19 // declare function isGeneratorFn(value: unknown): value is GeneratorFunction;
20 // export = isGeneratorFn;
21 default: typeof isGeneratorFn;
22};
23
24export = isGeneratorFn;
Note: See TracBrowser for help on using the repository browser.