Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

update declaration file to use intrinsic object type#13350

Merged
sandersn merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
HerringtonDarkholme:libHerringtonDarkholme/TypeScript:libCopy head branch name to clipboard
Jan 27, 2017
Merged

update declaration file to use intrinsic object type#13350
sandersn merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
HerringtonDarkholme:libHerringtonDarkholme/TypeScript:libCopy head branch name to clipboard

Conversation

@HerringtonDarkholme

Copy link
Copy Markdown
Contributor

Follow #12501, update declaration files to use intrinsic object type.

Only methods unconditionally throwing runtime TypeError are patched. For example, Object.keys invoked with primitive type will only throw TypeError in ES5. If we patch such methods, we will break partially ES6 compatible client.

@mhegazy

mhegazy commented Jan 9, 2017

Copy link
Copy Markdown
Contributor

@RyanCavanaugh can you take a look.

@falsandtru

falsandtru commented Jan 18, 2017

Copy link
Copy Markdown
Contributor

@HerringtonDarkholme Can you also update declarations in the lib directory?

@RyanCavanaugh

Copy link
Copy Markdown
Member

Looks right to me

@HerringtonDarkholme

Copy link
Copy Markdown
Contributor Author

@falsandtru I think the lib directory will be automatically updated in next release. So no need to update in this pull request.

@falsandtru

Copy link
Copy Markdown
Contributor

Oh, I don't know that automation, thanks.

@eschwartz

Copy link
Copy Markdown

I just want to note that this breaks the @types/lodash package. It seems like a bad move on the part of the lodash typings to include standard node library definitions... but they probably have good reasons.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.