Skip to content

Typescript typings for `bluebird` that force return values for then, catch and other chaining function that make sense to have return values

Notifications You must be signed in to change notification settings

Cycloware/cw-types-bluebird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

First, run npm install --save @cw-types/bluebird

Then, you must add node_modules/@cw-types to your tsconifg.json file, like so:

    "typeRoots": [
      "node_modules/@cw-types",
      "node_modules/@types"
    ]

This will enable the Typescript compiler to find and use this typing since it is not installed under node_modules/@types.

Please note the order is important of the entries in typeRoots. If you want node_modules/@types to resolve first then move it up top.

Summary

Modified type definitions for bluebird 3.5.0 that force return values for then, catch and other chaining function that make sense to have return values.

This package contains type definitions for bluebird.

Credits

Starting definitions were written by Leonard Hecker.

Maintainers

This project is mainted by Kavan J. Shaban at Cycloware

About

Typescript typings for `bluebird` that force return values for then, catch and other chaining function that make sense to have return values

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published