Closed ajhaupt7 closed 8 months ago
Thanks for this awesome library!
Simple issue - the default value of an array param when using the ssp.array() helper is not typed correctly.
ssp.array()
Currently we have
array: <T = any>(defaultValue?: T) => ({ encode: (value: T[]) => JSON.stringify(value), decode: (value: string | null): T[] | null => { if (value === null) return null; try { return JSON.parse(value); } catch (e) { return null; } }, defaultValue, }),
The default value should be typed as T[] and not T.
T[]
T
-
No response
How did you solve this issue? I also have this issue.
Describe the bug
Thanks for this awesome library!
Simple issue - the default value of an array param when using the
ssp.array()
helper is not typed correctly.Currently we have
The default value should be typed as
T[]
and notT
.Reproduction
-
Logs
No response