Skip to content

Build broken with Typescript 2.4 #1072

@jamesdaniels

Description

@jamesdaniels

Version info

Angular: n/a

Firebase: n/a

AngularFire: master

Other (e.g. Ionic/Cordova, Node, browser, operating system): typescript 2.4

How to reproduce these conditions

npm install
npm run build

Sample data and security rules

n/a

Debug output

src/database/firebase_list_factory.ts(115,51): error TS2345: Argument of type '(obs: Observer<any[]>) => () => void' is not assignable to parameter of type '(<R>(subscriber: Subscriber<R>) => void | Function | Subscription) | undefined'.
  Type '(obs: Observer<any[]>) => () => void' is not assignable to type '<R>(subscriber: Subscriber<R>) => void | Function | Subscription'.
    Types of parameters 'obs' and 'subscriber' are incompatible.
      Type 'Subscriber<R>' is not assignable to type 'Observer<any[]>'.
        Types of property 'next' are incompatible.
          Type '(value?: R | undefined) => void' is not assignable to type '(value: any[]) => void'.
            Types of parameters 'value' and 'value' are incompatible.
              Type 'any[]' is not assignable to type 'R | undefined'.
                Type 'any[]' is not assignable to type 'R'.

Expected behavior

not that.

Actual behavior

that.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions