News for hackers. Stuff that matters.
Re:From TypeScript to ReScript by hermanradtke on Wednesday January 12, 2022 @12:47PM (#29910265)
I do not know of a way to make this a compiler error:

    const user: User = JSON.parse(…);
Re:From TypeScript to ReScript by dhucerbin on Wednesday January 12, 2022 @06:17PM (#29914176)
You can redefine all definitions from lib.d.ts and similar. In my projects, parse function returns unknown, so I need to parse/validate/decode it in runtime to satisfy types.