Type alias IsLooseSchema<E>

IsLooseSchema<E>: string extends E[number]["type"]
    ? true
    : false

Type used to check if a schema is loosely typed. Use this to create conditional types.

In the given EntityRawSchemaArray, if the entities type is a string, the schema is loosely typed. If the schema is strongly typed, the entities type would be a word (which is stricter than string).

Type Parameters

Generated using TypeDoc