Skip to content

TediousUtils.TypeAlias.JsValueDataType

Christian d'Heureuse edited this page Oct 28, 2026 · 1 revision

tedious-plus / TediousUtils / JsValueDataType

Type Alias: JsValueDataType

type JsValueDataType = 
  | "number"
  | "string"
  | "boolean"
  | "bigint"
  | "object"
  | "Date"
  | "Buffer"
  | "number|null"
  | "string|null"
  | "boolean|null"
  | "bigint|null"
  | "object|null"
  | "Date|null"
  | "Buffer|null"
  | "any"
  | "unknown";

Defined in: TediousUtils.ts:204

The name of a JavaScript value data type. Used for the dataType option of ConnectionPlus.queryScalar().

  • "number", "string", "boolean", "bigint": A value of this primitive type.
  • "object": Any object, but not null.
  • "Date", "Buffer": An instance of this class.
  • "number|null", "string|null", "boolean|null", "bigint|null", "object|null", "Date|null", "Buffer|null": Same as the data type without |null, but null is also accepted.
  • "any", "unknown": Any value. The value is not checked. The TypeScript type is any or unknown.

Clone this wiki locally