Andrew Branch

Results 261 comments of Andrew Branch

Ok, so the problem with doing this with node_modules / npm packages specifically is that package.json files can contain complex intra-package mappings for types in themselves, so while the scheme...

@typescript-bot user test inline @typescript-bot perf test @typescript-bot run dt @typescript-bot test top100

@typescript-bot perf test this faster

I might look at making `getAllSymbolFlags` opinionated and say that unresolved aliases return `SymbolFlags.All`, and make a variant that returns `undefined` for the few places that need to do something...

@JounQin Any other thoughts? This seems like an improvement to me.

@typescript-bot user test this inline @typescript-bot run dt @typescript-bot test top100 @typescript-bot perf test this

@typescript-bot user test inline @typescript-bot run dt @typescript-bot test top100 @typescript-bot perf test this

@ahejlsberg what about the other issue this fixes? https://github.com/microsoft/TypeScript/issues/50787 ```ts type Model = { s: string; b: boolean } let pick: (properties: readonly Keys[]) => Pick let transform: (obj: T)...

It’s not clear though why specifying a very wide constraint like `unknown` or `{}` should behave differently than not specifying a constraint. In 4.7, and in this PR, this form...