-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Maybe it was Rome?
For this reason I've actually started to enjoy the idea of branded types. Instead of passing around entity IDs as numbers you can have the compiler ensure that you get a specific kind of number, or at least have to explicitly cast to get around this limitation.
I have been reading the codebase of "react-use", to learn about custom hooks. It is written in TypeScript. As an example, I find the value of creating complex annotations for simple stuff like this questionable: https://github.com/streamich/react-use/blob/master/src/useMap.ts
I think this aligns with what I'm saying. In the case of types being distracting, I remember a project where I needed to have an HoC with themed props from styled components and it was like impossible to get the typings right. Issue was never resolved afaik: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32048
Related posts
-
Declaring JSX types in TypeScript 5.1
-
Functional Programming with TypeScript's Type System
-
TypeScript PR merged to allow components to return anything renderable (raw strings, numbers, promises for RSC), instead of just JSX.Element and null.
-
De-obfuscated Protestware code in node-ipc that wipes Russian computers
-
How to Overcome Your TypeScriptoPhobia