-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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, 10/18/2019 #34576
Comments
I think TypeScript's behavior of just reading everything inside |
On the other hand, we might have a lot of users who benefit from not needing to configure their projects. I dunno if @RyanCavanaugh has any thoughts on this, but changing the default would probably break quite a bit. |
The default can be to load only whats appear in package.json, and not the whole types/* |
I think that a larger issue here is the incompatibility with how npm modules can have a tree of dependencies of different versions (e.g. many packages depending on lodash). And TypeScript does not mirror this concept and only expects one version of a type. Regarding |
I took a look at trying to make common globals before, but it's tricky because there are declared consts which are different between the environments - there isn't really a reconciliation process for that in today's typescript People can definitely take a look, maybe I missed something! |
TC39 Updates
globalThis
to stage 4Promise.any
,String#replaceAll
, formalized for-in object iterationMap#upsert
#{ x: 0 }
Optional Chaining and Narrowing
#33736
Have been iterating on feedback around narrowing optional chaining.
Today,
in
adds a property to the original type.Uhh.
Correcting Loose Assignability Rules for Intersections to Index Signatures
#32484
{ a: string }
being assignable toRecord<string, string>
is wrong because{ a: string }
can contain more properties than it declares.devDependencies
in@types
Packagesmicrosoft/types-publisher#655
@types/node
and@types/react-native
in the same dependency tree.@types
in your dependency trees.react
andreact-native
components can't have a dependency on either!devDependency
specifies that a package works with these packages,devDependency
s means that you can't use types from these in output positions.Buffer
s when you're in Node.IteratorResult
ended up with this issue, meant we needed to dotypesVersions
.devDependency
to check on DefinitelyTyped, let users install the correct peer types.@types/node
now"?excludeTypes
(Placeholder Type Declarations #31894) - a way to say "no, please don't add@types/node
from being included".@types
packages could fulfulllib
settings, and then we could providelib
?@types/node
, what do they rely on?The text was updated successfully, but these errors were encountered: