Type parameters
Properties
tables
• tables:Schema
strictTableNameTypes
• strictTableNameTypes:StrictTableTypes
schemaValidation
•Readonly schemaValidation: boolean
Methods
doc
▸ doc<TableName>(tableName): DocValidator<TableName, Schema[TableName]["validator"]>
The validator for whole documents of a table in this schema: the table’s
own validator with the _id and _creationTime system fields added.
Example
Type parameters
Parameters
Returns
DocValidator<TableName, Schema[TableName]["validator"]>
A validator matching documents of that table.
id
▸ id<TableName>(tableName): VId<GenericId<IdTableInSchema<Schema, TableName>>, "required">
The validator for IDs of a table in this schema.
Same as v.id(tableName), but only accepts tables in this schema.
Type parameters
Parameters
Returns
VId<GenericId<IdTableInSchema<Schema, TableName>>, "required">
A validator matching IDs of that table.