@types/is-generator-function
Version:
TypeScript definitions for is-generator-function
23 lines (16 loc) • 805 B
Markdown
# Installation
> `npm install --save @types/is-generator-function`
# Summary
This package contains type definitions for is-generator-function (https://github.com/ljharb/is-generator-function#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-generator-function.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-generator-function/index.d.ts)
````ts
declare function isGenerator(fn: unknown): fn is GeneratorFunction;
export = isGenerator;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: none
# Credits
These definitions were written by [Richie Bendall](https://github.com/Richienb), and [Jordan Harband](https://github.com/ljharb).