Currently the dict decoder only supports keys as string types :
|
static dict = <A>(decoder: Decoder<A>): Decoder<Record<string, A>> => |
Would you accept a pull request to provide the ability to decode dicts with numbers as keys? Happy to do the work and raise if so
Currently the dict decoder only supports keys as string types :
json-type-validation/src/decoder.ts
Line 403 in c28d34d
Would you accept a pull request to provide the ability to decode dicts with numbers as keys? Happy to do the work and raise if so