vue-qs / booleanCodec
Variable: booleanCodec
const
booleanCodec:QueryCodec
<boolean
>
Defined in: serializers.ts:81
Boolean codec for handling boolean values Treats 'true' and '1' as true, everything else as false
Example
ts
const isActive = queryRef('active', {
defaultValue: false,
codec: booleanCodec
});