TinyBase logoTinyBase β

ParamValue

The ParamValue type describes a single param value that can be used in a parameterized query.

string | number | boolean | null | string[] | number[] | boolean[]

A ParamValue is a JavaScript string, number, boolean, null - or an array of strings, numbers, or booleans. Arrays are useful for filtering by multiple values, such as checking if a cell value is included in a list of options.

Example

import type {ParamValue} from 'tinybase';

export const paramValue1: ParamValue = 'dog';
export const paramValue2: ParamValue = 5;
export const paramValue3: ParamValue = true;
export const paramValue4: ParamValue = null;
export const paramValue5: ParamValue = ['Ford', 'Toyota', 'Honda'];
export const paramValue6: ParamValue = [1970, 1975, 1980];
export const paramValue7: ParamValue = [true, false];

Since

v7.2.0