We’ve added official TypeScript support to our Node.js library.
You now have type errors, autocompletion for API fields and params, in-editor documentation, and much more!
Get started at https://github.com/stripe/stripe-node#usage-with-typescript … and catch those errors early.
pic.twitter.com/FmlTa1wXZk
-
-
The flag currently has no runtime effect other than adding "TypeScript" to your user-agent, so we can keep an eye on TypeScript adoption. See https://github.com/stripe/stripe-node/blob/master/types/lib.d.ts#L28 ….
-
Oh I'm so torn on this, having it part of the API feels really gross, but I know the value of showing the business "putting effort towards TypeScript was worth it!".
- Još 4 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
core contributor
generative art and plotters
new dad
he/him
seems weird to have (what appears to be) a runtime config option related to compile-time type checking.