Skip to content

Add explicit toString() - #754

Merged
Nathan Shively-Sanders (sandersn) merged 3 commits into
microsoft:masterfrom
saschanaz:stringifier
Nov 14, 2019
Merged

Add explicit toString()#754
Nathan Shively-Sanders (sandersn) merged 3 commits into
microsoft:masterfrom
saschanaz:stringifier

Conversation

@saschanaz

@saschanaz Kagami Sascha Rosylight (saschanaz) commented Sep 13, 2019

Copy link
Copy Markdown
Contributor

Fixes the lib.dom.d.ts part of microsoft/TypeScript#30225 (comment).

This provides autocomplete for types with their own toString() implementation (as toString() inherited from Object is shadowed by default), and also helps third-party tools that depends on TS type library.

const matrix = new DOMMatrix();
matrix.to // should now autocomplete `toString`

cc Domenic Denicola (@domenic)

(This restores cpx removed in #753, as it broke npm run baseline-accept.)

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.

2 participants