@types/is-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/is-generator

Summary

This package contains type definitions for is-generator (https://github.com/blakeembrey/is-generator).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-generator.

index.d.ts

declare function isGenerator(obj: unknown): obj is Generator;

declare namespace isGenerator {
    function fn(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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/is-generator

      Weekly Downloads

      297

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      2.92 kB

      Total Files

      5

      Last publish

      Collaborators

      • types