in src/lib/services/AsyncApi.ts [124:138]
public addEntity<D>(name: string): AddServiceReturn<D> {
if (this.entities[name])
throw (`An entity with this name exists ${name}`)
this.entities[name] = {
query: new GenericUnit<Query>(),
data: new GenericUnit<D>(),
error: new DictUnit(),
pending: new BoolUnit()
};
this.bind(name);
return this.entities[name];
}