typescript-json-decoder icon indicating copy to clipboard operation
typescript-json-decoder copied to clipboard

Json Decoder for Typescript

Results 4 typescript-json-decoder issues
Sort by recently updated
recently updated
newest added

Hi! I have a custom higher-order decoder that used to type fine in previous versions (1.0.6) and I can‘t get it working with 1.0.11: ```typescript async function fetchQuery( query: Query,...

I'm trying to decode nested values from JSON like this: ``` { name: 'exo', code: '1212', nested: { name: 'lika', code: '020202', place: 'somewhere' }, other1: 'oooo', other2: 8989 }...

Hi! Given this snippet of code: ``` const optionalTest = record({ id: optional(string) }); const objDecoder = record({ id: number, name: string, optionalId: optional(optionalTest), }); type Obj = decodeType; ```...

As we discussed in [the previous issue](https://github.com/tskj/typescript-json-decoder/issues/4), using a "continuation passing style" seems to be the most natural js solution for further transformations, i.e.: ```typescript optional(string, s => s ??...