Type

interface TypeDefinition {
    // black box
}

Defines a type for a field at database level. It is the return value of Type Functions. See Data types for details.

TypeDefinition

type TypeDefinition = (() => Type) | Type;

Defines a type for a field at database level, it can be either a Type Function (a Function which returns a Type) or a Type (the return value of a Type Function). If a Type Function is used, the default value is used for all the not specified arguments. See Data types for details.