Frontend for Miracle TV
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
861 B

import IResource from '@/store/interfaces/resource';
import { IUserSafe } from 'miracle-tv-shared/src/types/api/v1/interfaces/IUser';
import IActivity from 'miracle-tv-shared/src/types/api/v1/interfaces/IActivity';
import IChannel from 'miracle-tv-shared/src/types/api/v1/interfaces/IChannel';
import IStreamKey from 'miracle-tv-shared/src/types/api/v1/interfaces/IStreamKey';
const emptyResource = {
ids: [],
errors: [],
entities: {},
};
interface IStore {
resources: {
users: IResource<IUserSafe>;
activities: IResource<IActivity>;
channels: IResource<IChannel>;
streamKeys: IResource<IStreamKey>;
};
}
const initialStore: IStore = {
resources: {
users: { ...emptyResource },
activities: { ...emptyResource },
channels: { ...emptyResource },
streamKeys: { ...emptyResource },
}
}
export default initialStore;