9 ms·
The one frustrating thing is that you can’t just use .d.ts files in a project to define the full types for their corresponding .js module, without importing eac
by eyelidlessness 3y ago
The one frustrating thing is that you can’t just use .d.ts files in a project to define the full types for their corresponding .js module, without importing each type def individually. And assigning imported type defs to classes is severely limited and confusing. It’s a shame, because the same structure/approach ~just works for packages installed under node_modules.