@fakel/rest-admin
Version:
An application that makes it easier to work with your API
16 lines (12 loc) • 343 B
text/typescript
import { makeAutoObservable } from 'mobx';
import type { DataProviderT } from '../@types/dataProvider';
export class DataProviderStore {
private provider: DataProviderT;
constructor(dataProvider: DataProviderT) {
makeAutoObservable(this);
this.provider = dataProvider;
}
get dataProvider() {
return this.provider;
}
}