API Reference / @evolu/common / Evolu/Internal / assertValidEvoluSchema
Function: assertValidEvoluSchema()
function assertValidEvoluSchema(value): Readonly<Record<string & Brand<"Base64Url"> & Brand<"MaxLength42"> & Brand<"MinLength1"> & Brand<"TableName">, Readonly<{
id: AnyType;
}> & Readonly<Record<string & Brand<"Base64Url"> & Brand<"MaxLength42"> & Brand<"MinLength1"> & Brand<"ColumnName">, unknown>>>> & Brand<"ValidEvoluSchema">;
Defined in: packages/common/src/Evolu/Schema.ts:177
Asserts that the given value is ValidEvoluSchema.
Throws an error if the value is not a valid Evolu schema.
Parameters
Parameter | Type |
---|---|
value | unknown |
Returns
Readonly
<Record
<string
& Brand
<"Base64Url"
> & Brand
<"MaxLength42"
> & Brand
<"MinLength1"
> & Brand
<"TableName"
>, Readonly
<{
id
: AnyType
;
}> & Readonly
<Record
<string
& Brand
<"Base64Url"
> & Brand
<"MaxLength42"
> & Brand
<"MinLength1"
> & Brand
<"ColumnName"
>, unknown
>>>> & Brand
<"ValidEvoluSchema"
>