Closed osdiab closed 6 years ago
I just tried it in my code by copy pasting the generated index.d.ts
into the copy of index.d.ts
in node_modules
, and it works totally fine. Would appreciate it if this gets a prompt review :)
cc @wdavidw
This make sense to me but consider that I'm no TS expert.
For the TypeScript typings, instead of squashing types down to
string
ornumber
, we already know the values are constant so provide those types directly.This would be useful for me to narrow types for error handling in my APIs automatically and with fine-grained control. Thanks!