Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design Meeting Notes, 11/30/2016 #12622

Closed
mhegazy opened this issue Dec 2, 2016 · 4 comments
Closed

Design Meeting Notes, 11/30/2016 #12622

mhegazy opened this issue Dec 2, 2016 · 4 comments
Labels
Design Notes Notes from our design meetings

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Dec 2, 2016

__extends and static methods / accessors

var __extendStatics = (this && this.__extendStatics) ||
    Object.setPrototypeOf || 
   ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 
   function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };

var __extends = (this && this.__extends) || function (d, b) {
   __extendStatics(d, b);
   function __() { this.constructor = d; }
   d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
  • What about the other side of the issue, emitting methods and accessors as enumrable: false?
    • we have to do it for --target ES5 and not --target ES3
    • if we do this we break the static inheritance for IE10,
    • concolusion:
      • wait on more feedback for this

Promise in lib.d.ts

Extensibility (@RyanCavanaugh)

@mhegazy mhegazy added the Design Notes Notes from our design meetings label Dec 2, 2016
@mhegazy mhegazy closed this as completed Dec 2, 2016
@falsandtru
Copy link
Contributor

@mhegazy Where should we give feedback for __extends?

@mhegazy
Copy link
Contributor Author

mhegazy commented Dec 2, 2016

either here or at #12488

@falsandtru
Copy link
Contributor

thx

vvakame added a commit to vvakame/TypeScript that referenced this issue Dec 3, 2016
@pwnall
Copy link

pwnall commented Dec 22, 2016

I just got hit by the PromiseLike issue in the WebCrypto API.

The notes above seem to state that the solution will be splitting DOM definitions into multiple libraries. As an approach, I'd suggest setting up the scaffold, and splitting out one (small) API, so the community has an example PR to look at. This way, we (the community) could help with the APIs we care about.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Design Notes Notes from our design meetings
Projects
None yet
Development

No branches or pull requests

3 participants