Denis Frezzato
Denis Frezzato
[`record`](https://gcanti.github.io/io-ts/modules/index.ts.html#record) is what you're looking for. Example: ```typescript const MetadataNumber = t.record(t.string, t.number) interface MetadataNumber extends t.TypeOf {} // { [x: string]: number } ```
This library was created with TypeScript in mind and throwing errors is not type safe. So I think this feature would not be welcomed. If you really want to throw...
`fromPath` isn't meant to work with arrays, you have to use traversals. ```ts import { pipe } from "fp-ts/lib/function"; import * as L from "monocle-ts/Lens"; interface Data { readonly strings:...
What's the benefit of that type alias? It garantees that one property is defined, any of the properties, but without knowing which one. In practice, I don't see any difference...
`JSON.stringify` throws a `TypeError` when the value contains a circular reference or a `BigInt`.
Perhaps https://github.com/pfgray/ts-adt is more close to what you're looking for.
I did this https://github.com/gcanti/fp-ts-contrib/pull/84.
I had the same issue, so I've created a wrapper that also introaduces immutability: https://github.com/DenisFrezzato/sql-template-strings-ts
Il refuso l'ho trovato nel documento che ho indicato. Mi è stato indicato di segnalare il problema qui.