Skip to content


getData<T>(dataType, primaryKey): T

Gets an existing Data instance from the service.

  • New Data instances are not created automatically with this call. You can create new Data instances just like you would any other JavaScript object: E.g. let player = new Player("Scott") where Player is a service class that extends the Data base class.

Type parameters

T extends Data


dataType: (…args) => T

The class type that extends Data. (E.g. Player that extends Data)

primaryKey: string

A string that uniquely identifies the Data instance.



The Data instance.

Generated using typedoc-plugin-markdown and TypeDoc