Skip to content

Instantly share code, notes, and snippets.

@julianwachholz
Last active July 30, 2019 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julianwachholz/00921dd613a29ae4b68860f52437a816 to your computer and use it in GitHub Desktop.
Save julianwachholz/00921dd613a29ae4b68860f52437a816 to your computer and use it in GitHub Desktop.
typescript constructor properties
export abstract class BaseStore<T> {
@observable
objects: T[] = [];
constructor(private dao: BaseDAO<T>) {}
}
export class TenantStore extends BaseStore<ITenant> {
constructor(dao: BaseDAO<ITenant>) {
super(dao);
this.load();
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment