1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

fix: limit and offset with non numbers

This commit is contained in:
kwasniew 2025-09-09 13:09:18 +02:00
parent 8c2a502ead
commit 386a42aafa
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

View File

@ -1,5 +1,8 @@
import { encodeNumber, decodeNumber } from 'serialize-query-params'; import { encodeNumber, decodeNumber } from 'serialize-query-params';
/**
* @see: https://github.com/pbeshai/use-query-params/issues/175#issuecomment-982791559
*/
export const SafeNumberParam = { export const SafeNumberParam = {
encode: encodeNumber, encode: encodeNumber,
decode: (input: any) => { decode: (input: any) => {