-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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, 2/12/2016 #7059
Comments
Out of curiousity, what does 'type acqusition' mean here? |
@saschanaz I believe it refers to how ambient types are acquired, in hopes of trying to make it manageable to resolve the "diamond" problem of type definitions at the moment, Lib A uses NodeJS 0.12 and Lib B uses NodeJS 4.1 and then you include both in your project and "BOOM!". @RyanCavanaugh in regards to the 200 files problem, we have started trying to get Dojo 1 typings into some sort of shape, we have roughly aligned them to packages, but actually breaking them out to individual .d.ts files with, I would assume dependent references, would be a bit crazy for us, which I suspect Is there any way the TypeScript team, in their mind, would make it easier to organise a large type library like that? |
@kitsonk I see, thanks 👍 |
we are trying to come up with some guidance here. but at the moment, we do not have much. so far ideas are around using modules and avoiding global pollution, creating a different definition file for modules, and one for script, and making it easy to share definitions between them. |
At least in some cases, newer approaches (eg module augmentation) don't work, leaving global ambients as the only working alternative. See #7015. |
string
toMap<T>
infers insane type forT
, for exampleany
{ x: HTMLSpanElement, y: HTMLDivElement }
extend
aprivate
constructor from within a class expression inside that same classThe text was updated successfully, but these errors were encountered: