Skip to content
module@warp-drive/experiments/storage @experimental

Function BooleanParam()

ts
function BooleanParam(): ParamConfig;

Defined in: storage/query-params.ts:44

Creates a ParamConfig for boolean fields that serialize to '1' or null.

Returns

ParamConfig

ParamConfig for boolean fields

Example

ts
@param(BooleanParam())
@field
myFlag: boolean = false;

Released under the MIT License.