Stéphane Le Dorze

Results 53 comments of Stéphane Le Dorze

@gcanti about _loop_ ```typescript Dictionary.validate(s, c).chain(o => { let a = o const errors: Errors = [] for (let k in props) { const ok = o[k] const type =...

Make sense!

@gcanti I think it's good and idiomatic, to be honest; `joi` is not optimised because they 'want to keep the code readable and maintainable'.

@guoyunhe you may use `validate`/`decode` which are available on the io-ts Types themselves.

> After #17 I will create a custom adapter for this with [Kysely](https://kysely.dev/) to play around with it. out of curiosity, have you started on it ? (no pressure, this...

Context: we wanted to use PGLite to speed up our unit tests with an in memory version. As a feedback to save time for people trying the same : -...

@fenos had you tried to add an index ? if so, what was it and the result ?

@torkelrogstad unfortunately, the combinatorial nature of the implementation prevents that behaviour.

@piersmacdonald we strive keeping io-ts mininal and lean. Io-ts-types repo is where such additional Types may be defined.

We've used it in our codebase. This is the most used version (and fixes the problem of previous version). ```typescript export const migrate = ( from: t.Decoder, to: t.Type, migrate:...