Skip to content

json

Call Signature

json(): object

Defined in: packages/@livestore/common/dist/schema/state/sqlite/table-def.d.ts:5

Returns

object

columnType

columnType: "text"

default

default: None<never>

nullable

nullable: false

primaryKey

primaryKey: false

schema

schema: Schema<unknown, string>

Call Signature

json<TDecoded, TNullable, TDefault, TPrimaryKey>(args): object

Defined in: packages/@livestore/common/dist/schema/state/sqlite/table-def.d.ts:5

Type Parameters

TDecoded = unknown

TNullable extends boolean = false

TDefault = typeof NoDefault

TPrimaryKey extends boolean = false

Parameters

args

default?

TDefault

nullable?

TNullable

primaryKey?

TPrimaryKey

schema?

Schema<TDecoded, any, never>

Returns

object

columnType

columnType: "text"

default

default: TDefault extends typeof NoDefault ? None<never> : Some<TDefault>

nullable

nullable: NoInfer<TNullable>

primaryKey

primaryKey: NoInfer<TPrimaryKey>

schema

schema: TNullable extends true ? Schema<null | NoInfer<TDecoded>, null | string, never> : Schema<NoInfer<TDecoded>, string, never>