Skip to content

Bluebird version conflict #165

Closed
Closed
@schmod

Description

@schmod

There appears to be a minor version incompatibility between the version of the Bluebird typings required by this project(3.5.4), and the latest version of those typings (3.5.15).

It may make sense to alter this project's package.json to play nicely with newer semver-minor releases of the Sequelize and Bluebird typings.

@types/sequelize is super-generous, and actually just specifies @types/bluebird: "*" as a dependency).

src/file.ts.ts(57,3): error TS90010: Type 'Bluebird<number>' is not assignable to type 'Bluebird<number>'. Two different types with this name exist, but they are unrelated.
  Types of property 'then' are incompatible.
    Type '{ <U1, U2>(onFulfill: (value: number) => U1 | Thenable<U1>, onReject: (error: any) => U2 | Thenab...' is not assignable to type '{ <U>(onFulfill?: ((value: number) => U | PromiseLike<U>) | undefined, onReject?: ((error: any) =...'.
      Type 'Bluebird<any>' is not assignable to type 'Bluebird<any>'. Two different types with this name exist, but they are unrelated.
        Types of property 'catch' are incompatible.
          Type '{ (onReject?: ((error: any) => any) | undefined): Bluebird<any>; <U>(onReject?: ((error: any) => ...' is not assignable to type '{ (onReject?: ((error: any) => any) | undefined): Bluebird<any>; <U>(onReject?: ((error: any) => ...'. Two different types with this name exist, but they are unrelated.
            Types of parameters 'onReject' and 'filter1' are incompatible.
              Type 'new (...args: any[]) => any' is not assignable to type '((error: any) => any) | undefined'.
                Type 'new (...args: any[]) => any' is not assignable to type '(error: any) => any'.
                  Type 'new (...args: any[]) => any' provides no match for the signature '(error: any): any'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions