Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 730 Bytes

typedefinition.rst

File metadata and controls

26 lines (17 loc) · 730 Bytes

Type

interface TypeDefinition {
    // black box
}

Defines a type for a field at database level. It is the return value of :ref:`Type Functions<Type Function>`. See :ref:`Data types` for details.

TypeDefinition

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

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