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

Seperate definition for all experimental web features #2470

Open
basarat opened this issue Jul 6, 2014 · 4 comments
Open

Seperate definition for all experimental web features #2470

basarat opened this issue Jul 6, 2014 · 4 comments

Comments

@basarat
Copy link
Member

basarat commented Jul 6, 2014

We can do that if there is community interest.

It would be simplest to just reference the definitions from their current locations in a new folder (lib).

The current files found:

Updated : new name lib

@basarat
Copy link
Member Author

basarat commented Jul 12, 2014

@Bartvds
Copy link
Collaborator

Bartvds commented Jul 12, 2014

👍

And I sometimes feel there is room for a shared library kinda thing, like the Thenables from promise-a.

Maybe like a ./lib? A thing is a thing and using 'experimental' is messy as many of these currently experimentals will stablise at some point so we might as well put them in the right spot (otherwise what we do? removing stuff is bad).

@sedwards2009
Copy link
Contributor

I'm already (privately) maintaining my own copy of lib.d.ts with a number of modifications to support bleeding edge Chrome and node-webkit APIs.

Major changes include:

  • HTMLElement and subinterfaces are now classes which can be subclassed to support custom elements.
  • Shadow DOM related types and methods.
  • New CustomEvent constructor.

I've got code to do the HTMLElement transform and merge in the other changes. I would be happy to share my lib.d.ts and my code to build it.

TypeScript's issue tracker has plenty of lib.d.ts related issues and it looks like they intend to tackle them, but this will take a while. In the mean time an alternate lib.d.ts (or collection of alternate lib.d.ts for different environments) is needed otherwise some of us can't continue with our own projects.

Another question is whether MS are interested in supporting APIs (and non-standard APIs) which only exist in other browsers. From what I can gather, lib.d.ts is currently derived from IE's API description files.

@basarat
Copy link
Member Author

basarat commented Aug 31, 2014

Another question is whether MS are interested in supporting APIs (and non-standard APIs) which only exist in other browsers.

No.

lib.d.ts is currently derived from IE's API description files.

Yes, but they do welcome manual fixes when they make sense e.g. microsoft/TypeScript#337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants