Page Contents
Home > @loopback/repository > Type
Type interface
Signature:
export interface Type<T>
Properties
| Property | Type | Description |
|---|---|---|
| name | string | Name of the type |
Methods
| 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 |