Skip to content

[adone] fix builderror because of incompatible definition of duplex.end()#22569

Merged
mhegazy merged 3 commits intoDefinitelyTyped:masterfrom
Flarna:adone_fix_end
Jan 2, 2018
Merged

[adone] fix builderror because of incompatible definition of duplex.end()#22569
mhegazy merged 3 commits intoDefinitelyTyped:masterfrom
Flarna:adone_fix_end

Conversation

@Flarna
Copy link
Copy Markdown
Contributor

@Flarna Flarna commented Dec 29, 2017

I got a build error in another PR because end() defined in adone doesn't match to end() defined in nodejs duplex stream which is used as base class:

Error: /home/travis/build/DefinitelyTyped/DefinitelyTyped/types/adone/glosses/collections.d.ts
ERROR: 1630:15  expect  TypeScript@next compile error: 
Class 'BufferList' incorrectly extends base class 'Duplex'.
  Types of property 'end' are incompatible.
    Type '(chunk?: Buffer | undefined) => void' is not assignable to type '{ (cb?: Function | undefined): void; (chunk: any, cb?: Function | undefined): void; (chunk: any, ...'.
      Types of parameters 'chunk' and 'cb' are incompatible.
        Type 'Function | undefined' is not assignable to type 'Buffer | undefined'.
          Type 'Function' is not assignable to type 'Buffer | undefined'.
            Type 'Function' is not assignable to type 'Buffer'.
              Property 'write' is missing in type 'Function'.

Most likely caused by #22077.

@typescript-bot
Copy link
Copy Markdown
Contributor

@Flarna The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks!

@Flarna
Copy link
Copy Markdown
Contributor Author

Flarna commented Jan 2, 2018

ping @s0m3on3 @maxveres

@typescript-bot
Copy link
Copy Markdown
Contributor

A definition author has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped!

@mhegazy mhegazy merged commit 1d1c42f into DefinitelyTyped:master Jan 2, 2018
@Flarna Flarna deleted the adone_fix_end branch January 2, 2018 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants