Objects with open properties
Interface for classes with new operator and static properties/methods
| Name | Type | Description |
|---|---|---|
| args |
|
Interface for classes with |
Interface for constructor functions without new operator, for example,
function Foo(x) {
if (!(this instanceof Foo)) { return new Foo(x); }
this.x = x;
}
Type alias for Node.js callback functions
| Name | Type | Description |
|---|---|---|
| err |
|
|
| result |
T
|
Common properties/operations for connectors
| Name | Type | Description |
|---|---|---|
| configModel |
Model
|
Common properties/operations for connectors |
| interfaces |
|
Common properties/operations for connectors |
| name |
string
|
Common properties/operations for connectors |
| Name | Type | Description |
|---|---|---|
| command |
Command
|
Common properties/operations for connectors |
| parameters |
|
Common properties/operations for connectors |
| options |
Options
|
Common properties/operations for connectors |
CRUD operations for connector implementations
Count matching entities
A promise of number of matching entities
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| where |
Where
|
The matching criteria |
| options |
Options
|
Options for the operation |
Create a new entity
A promise of the entity created
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| entity |
EntityData
|
The entity instance or data |
| options |
Options
|
Options for the operation |
Create multiple entities
A promise of an array of entities created
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| entities |
|
An array of entity instances or data |
| options |
Options
|
Options for the operation |
Delete an entity
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| entity |
EntityData
|
The entity instance or data |
| options |
Options
|
Options for the operation |
Delete matching entities
A promise of number of matching entities deleted
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| where |
Where
|
The matching criteria |
| options |
Options
|
Options for the operation |
Delete an entity by id
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| id |
IdType
|
The entity id value |
| options |
Options
|
Options for the operation |
Check if an entity exists for the id
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| id |
IdType
|
The entity id value |
| options |
Options
|
Options for the operation |
Find matching entities by the filter
A promise of an array of entities found for the filter
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| filter |
Filter
|
The query filter |
| options |
Options
|
Options for the operation |
Find an entity by id
A promise of the entity found for the id
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| id |
IdType
|
The entity id value |
| options |
Options
|
Options for the operation |
Replace an entity by id
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| id |
IdType
|
The entity id value |
| data |
EntityData
|
The data attributes to be updated |
| options |
Options
|
Options for the operation |
Save an entity
A promise of the entity saved
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| entity |
EntityData
|
The entity instance or data |
| options |
Options
|
Options for the operation |
Update an entity
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| entity |
EntityData
|
The entity instance or data |
| options |
Options
|
Options for the operation |
Update matching entities
A promise of number of matching entities deleted
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| data |
EntityData
|
The data attributes to be updated |
| where |
Where
|
The matching criteria |
| options |
Options
|
Options for the operation |
Update an entity by id
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
The model class |
| id |
IdType
|
The entity id value |
| data |
EntityData
|
The data attributes to be updated |
| options |
Options
|
Options for the operation |
Key/Value operations for connector implementations
Delete an entry by key
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| key |
string
|
Key for the entry |
| options |
Options
|
Options for the operation |
Delete all entries
A promise of the number of entries deleted
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| options |
Options
|
Options for the operation |
Set up ttl for an entry by key
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| key |
string
|
Key for the entry |
| ttl |
number
|
Key/Value operations for connector implementations |
| options |
Options
|
Options for the operation |
Get an entry by key
A promise of the entry found for the key
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| key |
string
|
Key for the entry |
| options |
Options
|
Options for the operation |
Get an Iterator for matching keys
A promise of an iterator of entries
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| filter |
Filter
|
Matching filter |
| options |
Options
|
Options for the operation |
Fetch all keys
A promise of an array of keys for all entries
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| options |
Options
|
Options for the operation |
Set an entry with key/value
Promise
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| key |
string
|
Key for the entry |
| value |
EntityData
|
Value for the entry |
| options |
Options
|
Options for the operation |
Get ttl for an entry by key
A promise of the TTL value
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model class |
| key |
string
|
Key for the entry |
| ttl |
number
|
Time to live in millisenconds |
| options |
Options
|
Options for the operation |
DataSource denotes a configured connector
| Name | Type | Description |
|---|---|---|
| connector |
Connector
|
DataSource denotes a configured connector |
| name |
string
|
DataSource denotes a configured connector |
| settings |
AnyObject
|
DataSource denotes a configured connector |
A utility function to simplify retrieving metadata from a target model and its properties.
| Name | Type | Description |
|---|---|---|
| target |
Function
|
The class from which to retrieve metadata. |
| options |
InspectionOptions
|
An options object for the MetadataInspector to customize the output of the metadata retrieval functions. |
| Name | Type | Description |
|---|---|---|
| itemType |
Function
|
The class of the array to decorate |
| definition |
Partial
|
Optional PropertyDefinition object for additional metadata |
Decorator for model definitions
| Name | Type | Description |
|---|---|---|
| definition |
Partial
|
|
| Name | Type | Description |
|---|---|---|
| as |
string
|
|
| target |
|
|
| type |
RelationType
|
Decorator for belongsTo
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for embedsMany
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for embedsOne
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for hasMany
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for hasOne
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for referencesMany
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for referencesOne
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Decorator for relations
| Name | Type | Description |
|---|---|---|
| definition |
Object
|
|
Metadata for a repository
| Name | Type | Description |
|---|---|---|
| dataSource |
|
Instance of the data source |
| dataSourceName |
|
Name of the data source |
| modelClass |
|
Class of the model |
| modelName |
|
Name of the model |
| name |
|
Name of the predefined repository |
Constructor for RepositoryMetadata
| Name | Type | Description |
|---|---|---|
| modelOrRepo |
|
Name or class of the model. If the value is a string and
|
| dataSource |
|
Name or instance of the data source For example:
|
Type definition for decorators returned by @repository decorator factory
| Name | Type | Description |
|---|---|---|
| target |
Object
|
|
| key |
|
|
| descriptorOrIndex |
|
Decorator for repository injections on properties or method arguments
class CustomerController {
@repository(CustomerRepository) public custRepo: CustomerRepository;
constructor(
@repository(ProductRepository) public prodRepo: ProductRepository,
) {}
// ...
}
| Name | Type | Description |
|---|---|---|
| repositoryName |
|
Name of the repo |
Decorator for DefaultCrudRepository generation and injection on properties or method arguments based on the given model and dataSource (or their names)
class CustomerController {
@repository('Customer', 'mySqlDataSource')
public custRepo: DefaultCrudRepository<
Customer,
typeof Customer.prototype.id
>;
constructor(
@repository(Product, mySqlDataSource)
public prodRepo: DefaultCrudRepository<
Product,
typeof Product.prototype.id
>,
) {}
// ...
}
| Name | Type | Description |
|---|---|---|
| model |
|
Name/class of the model |
| dataSource |
|
Name/instance of the dataSource |
DataSource instance properties/operations
| Name | Type | Description |
|---|---|---|
| connected |
|
DataSource instance properties/operations |
| connecting |
|
DataSource instance properties/operations |
| name |
string
|
DataSource instance properties/operations |
| settings |
AnyObject
|
DataSource instance properties/operations |
| Name | Type | Description |
|---|---|---|
| name |
|
DataSource instance properties/operations |
| settings |
AnyObject
|
DataSource instance properties/operations |
| modelBuilder |
ModelBuilder
|
DataSource instance properties/operations |
| Name | Type | Description |
|---|---|---|
| settings |
AnyObject
|
DataSource instance properties/operations |
| modelBuilder |
ModelBuilder
|
DataSource instance properties/operations |
Create a model class
| Name | Type | Description |
|---|---|---|
| name |
string
|
Name of the model |
| properties |
AnyObject
|
An object of property definitions |
| options |
Options
|
Options for model settings |
Set the TTL (time to live) in ms (milliseconds) for a given key. TTL is the remaining time before a key-value pair is discarded from the database.
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key to use when searching the database. |
| ttl |
number
|
TTL in ms to set for the key. |
| options |
Options
|
|
| callback |
Callback
|
Return the value associated with a given key.
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key to use when searching the database. |
| options |
Options
|
|
| callback |
Callback
|
Asynchronously iterate all keys in the database. Similar to .keys() but
instead allows for iteration over large data sets without having to load
everything into memory at once.
Callback example:
// Given a model named `Color` with two keys `red` and `blue`
var iterator = Color.iterateKeys();
it.next(function(err, key) {
// key contains `red`
it.next(function(err, key) {
// key contains `blue`
});
});
Promise example:
// Given a model named `Color` with two keys `red` and `blue`
var iterator = Color.iterateKeys();
Promise.resolve().then(function() {
return it.next();
})
.then(function(key) {
// key contains `red`
return it.next();
});
.then(function(key) {
// key contains `blue`
});
An Object implementing next(cb) -> Promise
function that can be used to iterate all keys.
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
An optional filter object with the following |
| options |
Options
|
|
Return all keys in the database.
WARNING: This method is not suitable for large data sets as all
key-values pairs are loaded into memory at once. For large data sets,
use iterateKeys() instead.
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
An optional filter object with the following |
| options |
Options
|
|
| callback |
Callback
|
Persist a value and associate it with the given key.
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key to associate with the given value. |
| value |
KVData
|
Value to persist. |
| options |
Options
|
|
| callback |
Callback
|
Return the TTL (time to live) for a given key. TTL is the remaining time before a key-value pair is discarded from the database.
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key to use when searching the database. |
| options |
Options
|
|
| callback |
Callback
|
Base model class
| Name | Type | Description |
|---|---|---|
| dataSource |
DataSource
|
Base model class |
| definition |
ModelDefinition
|
Base model class |
| modelName |
string
|
Base model class |
| Name | Type | Description |
|---|---|---|
| args |
|
Base model class |
| Name | Type | Description |
|---|---|---|
| options |
Options
|
Base model class |
| Name | Type | Description |
|---|---|---|
| ds |
DataSource
|
Base model class |
| Name | Type | Description |
|---|---|---|
| definitions |
Function
|
|
| models |
Function
|
|
| settings |
AnyObject
|
|
| defaultInstance |
ModelBuilder
|
| Name | Type | Description |
|---|---|---|
| name |
string
|
|
| json |
AnyObject
|
|
| options |
Options
|
| Name | Type | Description |
|---|---|---|
| schemas |
AnyObject
|
|
| createModel |
Function
|
| Name | Type | Description |
|---|---|---|
| className |
string
|
|
| properties |
AnyObject
|
|
| settings |
AnyObject
|
|
| parent |
|
| Name | Type | Description |
|---|---|---|
| modelName |
string
|
|
| propertyName |
string
|
|
| propertyDefinition |
AnyObject
|
| Name | Type | Description |
|---|---|---|
| type |
string
|
|
| aliases |
|
| Name | Type | Description |
|---|---|---|
| modelName |
string
|
|
| properties |
AnyObject
|
| Name | Type | Description |
|---|---|---|
| name |
string
|
|
| forceCreate |
|
| Name | Type | Description |
|---|---|---|
| name |
string
|
| Name | Type | Description |
|---|---|---|
| name |
|
| Name | Type | Description |
|---|---|---|
| type |
any
|
Model definition
| Name | Type | Description |
|---|---|---|
| name |
string
|
Model definition |
| properties |
AnyObject
|
Model definition |
| rawProperties |
AnyObject
|
Model definition |
| relations |
|
Model definition |
| settings |
AnyObject
|
Model definition |
| Name | Type | Description |
|---|---|---|
| modelBuilder |
|
Model definition |
| name |
string
|
Model definition |
| properties |
|
Model definition |
| settings |
AnyObject
|
Model definition |
| Name | Type | Description |
|---|---|---|
| modelBuilder |
|
Model definition |
| schema |
Schema
|
Model definition |
| Name | Type | Description |
|---|---|---|
| forceRebuild |
|
Model definition |
| Name | Type | Description |
|---|---|---|
| connectorType |
string
|
Model definition |
| propertyName |
string
|
Model definition |
| Name | Type | Description |
|---|---|---|
| connectorType |
string
|
Model definition |
| propertyName |
string
|
Model definition |
| Name | Type | Description |
|---|---|---|
| connectorType |
string
|
Model definition |
| Name | Type | Description |
|---|---|---|
| propertyName |
string
|
Model definition |
| propertyDefinition |
PropertyDefinition
|
Model definition |
| Name | Type | Description |
|---|---|---|
| connectorType |
string
|
Model definition |
| Name | Type | Description |
|---|---|---|
| forceRebuild |
|
Model definition |
| Name | Type | Description |
|---|---|---|
| options |
Options
|
|
| callback |
Callback
|
Deletes the model from persistence.
Triggers destroy hook (async) before and after destroying object.
| Name | Type | Description |
|---|---|---|
| options |
Options
|
|
| callback |
Callback
|
Callback function. |
Get the id value for the PersistedModel.
The id value
Get the id property name of the constructor.
The id property name
Determine if the data model is new.
Returns true if the data model is new; false otherwise.
Reload object from persistence. Requires id member of object to be able to call find.
| Name | Type | Description |
|---|---|---|
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| options |
Options
|
|
| callback |
Callback
|
Replace attributes for a model instance and persist it into the datasource. Performs validation before replacing.
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
Data to replace. |
| options |
Options
|
|
| callback |
Callback
|
Save model instance. If the instance doesn't have an ID, then calls create instead. Triggers: validate, save, update, or create.
| Name | Type | Description |
|---|---|---|
| options |
Options
|
|
| callback |
Callback
|
Set the correct id property for the PersistedModel. Uses the setId method if the model is attached to
connector that defines it. Otherwise, uses the default lookup.
Override this method to handle complex IDs.
| Name | Type | Description |
|---|---|---|
| val |
any
|
The |
Update a single attribute.
Equivalent to updateAttributes({name: 'value'}, cb)
| Name | Type | Description |
|---|---|---|
| name |
string
|
Name of property. |
| value |
any
|
Value of property. |
| options |
Options
|
|
| callback |
Callback
|
Update set of attributes. Performs validation before updating.
Triggers: validation, save and update hooks
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
Data to update. |
| options |
Options
|
|
| callback |
Callback
|
Return the number of records that match the optional "where" filter.
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| options |
Options
|
|
| callback |
Callback
|
Create new instance of Model, and save to database.
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
|
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| id |
any
|
|
| options |
Options
|
|
| callback |
Callback
|
Destroy all model instances that match the optional where specification.
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| options |
Options
|
|
| callback |
Callback
|
Destroy model instance with the specified ID.
| Name | Type | Description |
|---|---|---|
| id |
any
|
The ID value of model instance to delete. |
| options |
Options
|
|
| callback |
Callback
|
Check whether a model instance exists in database.
| Name | Type | Description |
|---|---|---|
| id |
any
|
Identifier of object (primary key value). |
| options |
Options
|
|
| callback |
Callback
|
Find all model instances that match filter specification.
See Querying models.
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
|
| options |
Options
|
|
| callback |
Callback
|
Find object by ID with an optional filter for include/fields.
| Name | Type | Description |
|---|---|---|
| id |
any
|
Primary key value |
| filter |
Filter
|
|
| options |
Options
|
|
| callback |
Callback
|
Find one model instance that matches filter specification.
Same as find, but limited to one result;
Returns object, not collection.
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
|
| options |
Options
|
|
| callback |
Callback
|
Finds one record matching the optional filter object. If not found, creates
the object using the data provided as second argument. In this sense it is
the same as find, but limited to one object. Returns an object, not
collection. If you don't provide the filter object argument, it tries to
locate an existing object that matches the data argument.
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
|
| data |
PersistedData
|
Data to insert if object matching the |
| options |
Options
|
|
| callback |
Callback
|
Get the id property name of the constructor.
The id property name
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
|
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| data |
PersistedData
|
|
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| id |
any
|
|
| options |
Options
|
|
| callback |
Callback
|
Replace attributes for a model instance whose id is the first input argument and persist it into the datasource. Performs validation before replacing.
| Name | Type | Description |
|---|---|---|
| id |
any
|
The ID value of model instance to replace. |
| data |
PersistedData
|
Data to replace. |
| options |
Options
|
|
| callback |
Callback
|
Replace or insert a model instance; replace existing record if one is found,
such that parameter data.id matches id of model instance; otherwise,
insert a new record.
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
The model instance data. |
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| data |
PersistedData
|
|
| options |
Options
|
|
| callback |
Callback
|
Update multiple instances that match the where clause.
Example:
Employee.updateAll({managerId: 'x001'}, {managerId: 'x002'}, function(err, info) {
...
});
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| data |
PersistedData
|
Object containing data to replace matching instances, if AnyType. |
| options |
Options
|
|
| callback |
Callback
|
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
|
| options |
Options
|
|
| callback |
Callback
|
Update or insert a model instance
| Name | Type | Description |
|---|---|---|
| data |
PersistedData
|
The model instance data to insert. |
| options |
Options
|
|
| callback |
Callback
|
Update or insert a model instance based on the search criteria. If there is a single instance retrieved, update the retrieved model. Creates a new model if no model instances were found. Returns an error if multiple instances are found.
| Name | Type | Description |
|---|---|---|
| where |
Where
|
|
| data |
PersistedData
|
The model instance data to insert. |
| options |
Options
|
|
| callback |
Callback
|
Column metadata
| Name | Type | Description |
|---|---|---|
| name |
string
|
Column metadata |
| Name | Type | Description |
|---|---|---|
| and |
|
|
| between |
|
|
| eq |
any
|
|
| exists |
|
|
| gt |
any
|
|
| gte |
any
|
|
| inq |
|
|
| lt |
any
|
|
| lte |
any
|
|
| neq |
any
|
|
| or |
|
| Name | Type | Description |
|---|---|---|
| count |
number
|
Selection of fields
Query filter object
| Name | Type | Description |
|---|---|---|
| fields |
Fields
|
Query filter object |
| include |
|
Query filter object |
| limit |
|
Query filter object |
| offset |
|
Query filter object |
| order |
|
Query filter object |
| skip |
|
Query filter object |
| where |
Where
|
Query filter object |
ID definition
| Name | Type | Description |
|---|---|---|
| id |
number
|
ID definition |
| name |
string
|
ID definition |
| property |
AnyObject
|
ID definition |
Inclusion of related items
| Name | Type | Description |
|---|---|---|
| relation |
string
|
Inclusion of related items |
| scope |
Filter
|
Inclusion of related items |
Index definition
Property definition
| Name | Type | Description |
|---|---|---|
| name |
string
|
Property definition |
| type |
any
|
Property definition |
Relation definition
| Name | Type | Description |
|---|---|---|
| name |
string
|
Relation definition |
| type |
string
|
Relation definition |
Schema definition
| Name | Type | Description |
|---|---|---|
| name |
string
|
Schema definition |
| properties |
AnyObject
|
Schema definition |
| settings |
AnyObject
|
Schema definition |
Where object
| Name | Type | Description |
|---|---|---|
| and |
|
Where object |
| or |
|
Where object |
A builder to compose mixins
| Name | Type | Description |
|---|---|---|
| baseClass |
Class
|
The base class |
Constructor for MixinBuilder
| Name | Type | Description |
|---|---|---|
| baseClass |
Class
|
The base class |
Apply one or more mixin functions
| Name | Type | Description |
|---|---|---|
| mixins |
|
An array of mixin functions |
Create an instance of MixinBuilder with the base class
| Name | Type | Description |
|---|---|---|
| baseClass |
Class
|
The base class |
Interface for functions that can mix properties/methods into a base class
For example,
var calculatorMixin = Base => class extends Base {
calc() { }
};
function timestampMixin(Base) {
return class extends Base {
created: Date = new Date();
modified: Date = new Date();
}
}
See http://justinfagnani.com/2015/12/21/real-mixins-with-javascript-classes/.
Interface for an Application mixed in with RepositoryMixin
| Name | Type | Description |
|---|---|---|
| options |
ApplicationConfig
|
Interface for an Application mixed in with RepositoryMixin |
| Name | Type | Description |
|---|---|---|
| component |
Class
|
Interface for an Application mixed in with RepositoryMixin |
| Name | Type | Description |
|---|---|---|
| dataSource |
DataSource
|
Interface for an Application mixed in with RepositoryMixin |
| name |
|
Interface for an Application mixed in with RepositoryMixin |
| Name | Type | Description |
|---|---|---|
| repo |
Class
|
Interface for an Application mixed in with RepositoryMixin |
| Name | Type | Description |
|---|---|---|
| component |
Class
|
Interface for an Application mixed in with RepositoryMixin |
| Name | Type | Description |
|---|---|---|
| repo |
Class
|
Interface for an Application mixed in with RepositoryMixin |
A mixin class for Application that creates a .repository() function to register a repository automatically. Also overrides component function to allow it to register repositories automatically.
class MyApplication extends RepositoryMixin(Application) {}
| Name | Type | Description |
|---|---|---|
| superClass |
T
|
Base class for entities which have unique ids
Get the identity value. If the identity is a composite key, returns an object.
Get the identity as an object, such as {id: 1} or
{schoolId: 1, studentId: 2}
Build the where object for the given id
| Name | Type | Description |
|---|---|---|
| id |
any
|
The id value |
Domain events
| Name | Type | Description |
|---|---|---|
| source |
any
|
Domain events |
| type |
string
|
Domain events |
Base class for models
| Name | Type | Description |
|---|---|---|
| definition |
ModelDefinition
|
Base class for models |
| modelName |
string
|
Base class for models |
| Name | Type | Description |
|---|---|---|
| data |
Partial
|
Base class for models |
Serialize into a plain JSON object
Convert to a plain object as DTO
| Name | Type | Description |
|---|---|---|
| options |
Options
|
Base class for models |
Definition for a model
| Name | Type | Description |
|---|---|---|
| name |
string
|
Definition for a model |
| properties |
Function
|
Definition for a model |
| settings |
Function
|
Definition for a model |
| Name | Type | Description |
|---|---|---|
| nameOrDef |
|
Definition for a model |
Add a property
| Name | Type | Description |
|---|---|---|
| name |
string
|
Definition for a model |
| definitionOrType |
|
Definition for a model |
Add a setting
| Name | Type | Description |
|---|---|---|
| name |
string
|
Setting name |
| value |
any
|
Setting value |
Get an array of names of ID properties, which are specified in
the model settings or properties with id attribute. For example,
{
settings: {
id: ['id']
}
properties: {
id: {
type: 'string',
id: true
}
}
}
Base class for value objects - An object that contains attributes but has no conceptual identity. They should be treated as immutable.
DSL for building a model definition.
| Name | Type | Description |
|---|---|---|
| name |
string
|
DSL for building a model definition. |
| properties |
|
DSL for building a model definition. |
| settings |
|
DSL for building a model definition. |
Property definition for a model
| Name | Type | Description |
|---|---|---|
| id |
|
Property definition for a model |
| json |
PropertyForm
|
Property definition for a model |
| store |
PropertyForm
|
Property definition for a model |
| type |
PropertyType
|
Property definition for a model |
| Name | Type | Description |
|---|---|---|
| in |
|
|
| name |
|
|
| out |
|
A builder for Filter. It provides fleunt APIs to add clauses such as
fields, order, where, limit, offset, and include.
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
A builder for Filter. It provides fleunt APIs to add clauses such as
|
| Name | Type | Description |
|---|---|---|
| f |
Filter
|
A builder for Filter. It provides fleunt APIs to add clauses such as
|
Return the filter object
Describe what fields to be included/excluded
| Name | Type | Description |
|---|---|---|
| f |
|
A field name to be included, an array of field names to be included, or an Fields object for the inclusion/exclusion |
Declare include
| Name | Type | Description |
|---|---|---|
| i |
|
A relation name, an array of relation names, or an |
Set limit
| Name | Type | Description |
|---|---|---|
| limit |
number
|
Maximum number of records to be returned |
Set offset
| Name | Type | Description |
|---|---|---|
| offset |
number
|
Offset of the number of records to be returned |
Describe the sorting order
| Name | Type | Description |
|---|---|---|
| o |
|
A builder for Filter. It provides fleunt APIs to add clauses such as
|
Alias to offset
| Name | Type | Description |
|---|---|---|
| skip |
number
|
|
Declare a where clause
| Name | Type | Description |
|---|---|---|
| w |
Where
|
Where object |
A builder for Where object. It provides fleunt APIs to add clauses such as
and, or, and other operators.
| Name | Type | Description |
|---|---|---|
| where |
Where
|
A builder for Where object. It provides fleunt APIs to add clauses such as
|
| Name | Type | Description |
|---|---|---|
| w |
Where
|
A builder for Where object. It provides fleunt APIs to add clauses such as
|
Add an and clause.
| Name | Type | Description |
|---|---|---|
| w |
|
One or more where objects |
Add a between condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val1 |
any
|
Property value lower bound |
| val2 |
any
|
Property value upper bound |
Get the where object
Add an = condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
any
|
Property value |
Add a exists condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
|
Exists or not |
Add a > condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
any
|
Property value |
Add a >= condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
any
|
Property value |
Add a inq condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
|
An array of property values |
Add a < condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
any
|
Property value |
Add a <= condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
any
|
Property value |
Add a != condition
| Name | Type | Description |
|---|---|---|
| key |
string
|
Property name |
| val |
any
|
Property value |
Add an or clause.
| Name | Type | Description |
|---|---|---|
| w |
|
One or more where objects |
Matching condition
Selection of fields
Example:
{afieldname: true}
Query filter object
| Name | Type | Description |
|---|---|---|
| fields |
Fields
|
To include/exclude fields |
| include |
|
To include related objects |
| limit |
|
Maximum number of entities |
| offset |
|
Offset N number of entities. An alias for |
| order |
|
Sorting order for matched entities. Each item should be formatted as
We might want to use |
| skip |
|
Skip N number of entities |
| where |
Where
|
The matching criteria |
Inclusion of related items
Note: scope means filter on related items
Example:
{relation: 'aRelationName', scope: {<AFilterObject>}}
| Name | Type | Description |
|---|---|---|
| relation |
string
|
Inclusion of related items Note: scope means filter on related items Example:
|
| scope |
Filter
|
Inclusion of related items Note: scope means filter on related items Example:
|
Order by
Example:
{afieldname: 'ASC'}
Where object
Examples:
{afieldname: 'aName'}
{and: [{fieldone: 'one'}, {fieldtwo: 'two'}]}
{or: [{fieldone: 'one'}, {fieldtwo: 'two'}]}
| Name | Type | Description |
|---|---|---|
| strings |
TemplateStringsArray
|
|
| keys |
|
Key/Value operations for connector implementations
Delete an entry by key
Promise
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key for the entry |
| options |
Options
|
Options for the operation |
Delete all entries
A promise of the number of entries deleted
| Name | Type | Description |
|---|---|---|
| options |
Options
|
Options for the operation |
Set up ttl for an entry by key
Promise
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key for the entry |
| ttl |
number
|
Key/Value operations for connector implementations |
| options |
Options
|
Options for the operation |
Get an entry by key
A promise of the entry
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key for the entry |
| options |
Options
|
Options for the operation |
Get an Iterator for matching keys
A promise of an iterator of entries
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
Filter for keys |
| options |
Options
|
Options for the operation |
Fetch all keys
A promise of an array of keys for all entries
| Name | Type | Description |
|---|---|---|
| options |
Options
|
Options for the operation |
Set an entry with key/value
Promise
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key for the entry |
| value |
DataObject
|
Value for the entry |
| options |
Options
|
Options for the operation |
Get ttl for an entry by key
A promise of the TTL value
| Name | Type | Description |
|---|---|---|
| key |
string
|
Key for the entry |
| ttl |
number
|
Key/Value operations for connector implementations |
| options |
Options
|
Options for the operation |
Default implementation of CRUD repository using legacy juggler model and data source
| Name | Type | Description |
|---|---|---|
| dataSource |
DataSource
|
Legacy data source |
| entityClass |
|
Default implementation of CRUD repository using legacy juggler model and data source |
| modelClass |
PersistedModel
|
Default implementation of CRUD repository using legacy juggler model and data source |
Constructor of DefaultCrudRepository
| Name | Type | Description |
|---|---|---|
| entityClass |
|
Constructor of DefaultCrudRepository |
| dataSource |
DataSource
|
Legacy data source |
| Name | Type | Description |
|---|---|---|
| where |
Where
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| entity |
Partial
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| entities |
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| entity |
T
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| where |
Where
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| command |
Command
|
Default implementation of CRUD repository using legacy juggler model and data source |
| parameters |
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Default implementation of CRUD repository using legacy juggler model and data source |
| filter |
Filter
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Default implementation of CRUD repository using legacy juggler model and data source |
| data |
Partial
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| entity |
T
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| entity |
T
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| data |
Partial
|
Default implementation of CRUD repository using legacy juggler model and data source |
| where |
Where
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Default implementation of CRUD repository using legacy juggler model and data source |
| data |
Partial
|
Default implementation of CRUD repository using legacy juggler model and data source |
| options |
Options
|
Default implementation of CRUD repository using legacy juggler model and data source |
This is a bridge to the legacy DAO class. The function mixes DAO methods into a model class and attach it to a given data source
The new model class with DAO (CRUD) operations
| Name | Type | Description |
|---|---|---|
| modelClass |
T
|
Model class |
| ds |
DataSource
|
Data source |
Repository implementation
Example:
User can import CrudRepositoryImpl and call its functions like:
CrudRepositoryImpl.find(somefilters, someoptions)
Or extend class CrudRepositoryImpl and override its functions:
export class TestRepository extends CrudRepositoryImpl<Test> {
constructor(dataSource: DataSource, model: Test) {
super(dataSource, Customer);
}
// Override `deleteAll` to disable the operation
deleteAll(where?: Where, options?: Options) {
return Promise.reject(new Error('deleteAll is disabled'));
}
}
| Name | Type | Description |
|---|---|---|
| dataSource |
DataSource
|
Repository implementation Example: User can import Or extend class
|
| model |
Class
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| dataSource |
DataSource
|
Repository implementation Example: User can import Or extend class
|
| model |
Class
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| where |
Where
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| entities |
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| where |
Where
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| command |
Command
|
Repository implementation Example: User can import Or extend class
|
| parameters |
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Repository implementation Example: User can import Or extend class
|
| data |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| data |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| where |
Where
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Repository implementation Example: User can import Or extend class
|
| data |
DataObject
|
Repository implementation Example: User can import Or extend class
|
| options |
Options
|
Repository implementation Example: User can import Or extend class
|
Basic CRUD operations for ValueObject and Entity. No ID is required.
Count matching records
A promise of number of records matched
| Name | Type | Description |
|---|---|---|
| where |
Where
|
Matching criteria |
| options |
Options
|
Options for the operations |
Create a new record
A promise of record created
| Name | Type | Description |
|---|---|---|
| dataObject |
DataObject
|
The data to be created |
| options |
Options
|
Options for the operations |
Create all records
A promise of an array of records created
| Name | Type | Description |
|---|---|---|
| dataObjects |
|
An array of data to be created |
| options |
Options
|
Options for the operations |
Delete matching records
A promise of number of records deleted
| Name | Type | Description |
|---|---|---|
| where |
Where
|
Matching criteria |
| options |
Options
|
Options for the operations |
Find matching records
A promise of an array of records found
| Name | Type | Description |
|---|---|---|
| filter |
Filter
|
Query filter |
| options |
Options
|
Options for the operations |
Updating matching records with attributes from the data object
A promise of number of records updated
| Name | Type | Description |
|---|---|---|
| dataObject |
DataObject
|
The data to be updated |
| where |
Where
|
Matching criteria |
| options |
Options
|
Options for the operations |
CRUD operations for a repository of entities
Delete an entity
Promise
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Entity to be deleted |
| options |
Options
|
Options for the operations |
Delete an entity by id
Promise
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Value for the entity id |
| options |
Options
|
Options for the operations |
Check if an entity exists for the given id
Promise
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Value for the entity id |
| options |
Options
|
Options for the operations |
Find an entity by id
A promise of an entity found for the id
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Value for the entity id |
| filter |
Filter
|
CRUD operations for a repository of entities |
| options |
Options
|
Options for the operations |
Replace an entity by id
Promise
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Value for the entity id |
| data |
DataObject
|
Data attributes to be replaced |
| options |
Options
|
Options for the operations |
Save an entity. If no id is present, create a new entity
A promise of an entity saved or null if the entity does not exist
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Entity to be saved |
| options |
Options
|
Options for the operations |
Update an entity
Promise
| Name | Type | Description |
|---|---|---|
| entity |
DataObject
|
Entity to be updated |
| options |
Options
|
Options for the operations |
Update an entity by id with property/value pairs in the data object
Promise
| Name | Type | Description |
|---|---|---|
| id |
ID
|
Value for the entity id |
| data |
DataObject
|
Data attributes to be updated |
| options |
Options
|
Options for the operations |
Base interface for a repository of entities
Execute a query with the given parameter object or an array of parameters
| Name | Type | Description |
|---|---|---|
| command |
Command
|
The query string or command object |
| parameters |
|
The object with name/value pairs or an array of parameter values |
| options |
Options
|
Options |
Any type
| Name | Type | Description |
|---|---|---|
| name |
|
Any type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Any type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Any type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Any type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Any type |
Array type, such as string[]
| Name | Type | Description |
|---|---|---|
| itemType |
Type
|
Array type, such as string[] |
| name |
|
Array type, such as string[] |
| Name | Type | Description |
|---|---|---|
| itemType |
Type
|
Array type, such as string[] |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Array type, such as string[] |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Array type, such as string[] |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Array type, such as string[] |
| Name | Type | Description |
|---|---|---|
| value |
|
Array type, such as string[] |
Boolean type
| Name | Type | Description |
|---|---|---|
| name |
|
Boolean type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Boolean type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Boolean type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Boolean type |
| Name | Type | Description |
|---|---|---|
| value |
|
Boolean type |
Buffer (binary) type
| Name | Type | Description |
|---|---|---|
| name |
|
Buffer (binary) type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Buffer (binary) type |
| options |
Options
|
Buffer (binary) type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Buffer (binary) type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Buffer (binary) type |
| Name | Type | Description |
|---|---|---|
| value |
|
Buffer (binary) type |
| options |
Options
|
Buffer (binary) type |
Date type
| Name | Type | Description |
|---|---|---|
| name |
|
Date type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Date type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Date type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Date type |
| Name | Type | Description |
|---|---|---|
| value |
|
Date type |
Model type
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model type |
| name |
string
|
Model type |
| Name | Type | Description |
|---|---|---|
| modelClass |
Class
|
Model type |
| Name | Type | Description |
|---|---|---|
| value |
|
Model type |
Number type
| Name | Type | Description |
|---|---|---|
| name |
|
Number type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Number type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Number type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Number type |
| Name | Type | Description |
|---|---|---|
| value |
|
Number type |
Object type
| Name | Type | Description |
|---|---|---|
| name |
string
|
Object type |
| type |
Class
|
Object type |
| Name | Type | Description |
|---|---|---|
| type |
Class
|
Object type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Object type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Object type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Object type |
| Name | Type | Description |
|---|---|---|
| value |
|
Object type |
String type
| Name | Type | Description |
|---|---|---|
| name |
|
String type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
String type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
String type |
| Name | Type | Description |
|---|---|---|
| value |
any
|
String type |
| Name | Type | Description |
|---|---|---|
| value |
|
String type |
| Name | Type | Description |
|---|---|---|
| name |
string
|
Name of the type |
Coerce the value into this type
Coerced value of this type
| Name | Type | Description |
|---|---|---|
| value |
any
|
The value to be coerced |
| options |
Options
|
Options for coercion |
Generate the default value for this type
Check if the given value can be coerced into this type
| Name | Type | Description |
|---|---|---|
| value |
any
|
The value to to be coerced |
| options |
Options
|
Test if the given value is an instance of this type
| Name | Type | Description |
|---|---|---|
| value |
any
|
The value |
Serialize a value into json
| Name | Type | Description |
|---|---|---|
| value |
|
The value of this type |
| options |
Options
|
Options for serialization |
Union type, such as string | number
| Name | Type | Description |
|---|---|---|
| itemTypes |
|
Union type, such as string | number |
| name |
|
Union type, such as string | number |
| Name | Type | Description |
|---|---|---|
| itemTypes |
|
Union type, such as string | number |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Union type, such as string | number |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Union type, such as string | number |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Union type, such as string | number |
| Name | Type | Description |
|---|---|---|
| value |
any
|
Union type, such as string | number |