Skip to content

update declaration file to use intrinsic object type#13350

Merged
sandersn merged 1 commit into
microsoft:masterfrom
HerringtonDarkholme:lib
Jan 27, 2017
Merged

update declaration file to use intrinsic object type#13350
sandersn merged 1 commit into
microsoft:masterfrom
HerringtonDarkholme:lib

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
Copy link
Copy Markdown
Contributor

mhegazy commented Jan 9, 2017

@RyanCavanaugh can you take a look.

@falsandtru
Copy link
Copy Markdown
Contributor

falsandtru commented Jan 18, 2017

@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