Closed r-k-b closed 5 years ago
Is it possible to represent this type with a decoder?
interface Map<T> { [key: string]: T; }
That's the dict decoder. Also, I only recently found out that there's a built in helper for indexed object types, which is Record<string, T>.
Record<string, T>
Thanks, mulias!
Is it possible to represent this type with a decoder?