Page Contents

Home > @loopback/repository > Type

Type interface


export interface Type<T> 


Property Modifiers Type Description
name   string Name of the type


Method Description
coerce(value, options) Coerce the value into this type
defaultValue() Generate the default value for this type
isCoercible(value, options) Check if the given value can be coerced into this type
isInstance(value) Test if the given value is an instance of this type
serialize(value, options) Serialize a value into json