Skip to content

[thrift] Remove dependency on node v8 - #20579

Closed
kevin-greene-ck wants to merge 1 commit into
DefinitelyTyped:masterfrom
kevin-greene-ck:node-v6
Closed

kevin-greene-ck wants to merge 1 commit into
DefinitelyTyped:masterfrom
kevin-greene-ck:node-v6

Conversation

@kevin-greene-ck

Copy link
Copy Markdown
Contributor
  • Many users may still be on earlier version of node, the requirement
    of node v8 is not necessary

  • ClientRequestArgs is new in the types for node v8. The same types exists in node v6 under a
    different name. Just moving that hash to here as to remove the dependency on a specific
    node version

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

  * Many users may still be on earlier version of node, the requirement
    of node v8 is not necessary
@dt-bot

dt-bot commented Oct 14, 2017

Copy link
Copy Markdown
Member

types/thrift/index.d.ts

to authors (@kamek-pf @jessezhang91). Could you review this PR?
👍 or 👎?

@jessezhang91

Copy link
Copy Markdown
Contributor

👍

@typescript-bot

Copy link
Copy Markdown
Contributor

Approved by a listed owner. PR ready to merge pending express review by a maintainer.

@ghost

ghost commented Oct 16, 2017

Copy link
Copy Markdown

Instead of duplicating the interface here, couldn't you just backport it to node/v6?

@kevinbgreene

Copy link
Copy Markdown

The same interface exists in Node v8 under a different name. Doing this makes these types compatible with either version of the node types.

@ghost

ghost commented Oct 18, 2017 •

Copy link
Copy Markdown

@wwwy3y3 @Flarna Any reason we can't port interface ClientRequestArgs to node v6? (Ref #18281)

@Flarna

Flarna commented Oct 18, 2017

Copy link
Copy Markdown
Contributor

There should be no issue in doing this.
I think >80% of the changes done in Node 8 during the last month could be merge to older node versions.

@kevin-greene-ck

Copy link
Copy Markdown
Contributor Author

@Andy-MS Ok, I'll update the older node version and close this.

@kevin-greene-ck

Copy link
Copy Markdown
Contributor Author

Closed in favor of fixing the node types #20695

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.

6 participants