-
-
Notifications
You must be signed in to change notification settings - Fork 1k
📎 Bundle "real" global type definitions #5977
Copy link
Copy link
Open
Labels
A-CoreArea: coreArea: coreS-EnhancementStatus: Improve an existing featureStatus: Improve an existing featureS-Good first issueStatus: Good for newcomersStatus: Good for newcomersS-Help-wantedStatus: you're familiar with the code base and want to help the projectStatus: you're familiar with the code base and want to help the project
Metadata
Metadata
Assignees
Labels
A-CoreArea: coreArea: coreS-EnhancementStatus: Improve an existing featureStatus: Improve an existing featureS-Good first issueStatus: Good for newcomersStatus: Good for newcomersS-Help-wantedStatus: you're familiar with the code base and want to help the projectStatus: you're familiar with the code base and want to help the project
Type
Fields
Give feedbackNo fields configured for Task.
Projects
StatusShow more project fields
Backlog
Description
Currently, our
GlobalsResolverrelies on hardcoded, predefined types for globals such asArrayandPromise. TypeScript however has much more extended definitions in their.d.tsfiles: https://github.com/microsoft/TypeScript/tree/main/src/libIdeally, we'd parse these
.d.tsfiles at compile time or a separate codegen step and bundle them with Biome, to be used by a revised implementation of ourGlobalsResolver.Of course, this does mean we need improved handling of
.d.tsfiles in general, but it shouldn't take much work on that front to be able to begin this task. Feel free to inquire if you're interested in this task!