Skip to content

Instantly share code, notes, and snippets.

@emyann
Created January 5, 2019 20:13
Show Gist options
  • Save emyann/32b35361a9c07d32a72088649aa2005d to your computer and use it in GitHub Desktop.
Save emyann/32b35361a9c07d32a72088649aa2005d to your computer and use it in GitHub Desktop.
import { CallEventsActions } from './callEvents.action';
export interface CallState {
latestCall: string | null;
byId: { [id: string]: Call };
allIds: string[];
}
export const CALLS_INITIAL_STATE = {
latestCall: null,
byId: {},
allIds: [],
};
export const callEventsReducer: Reducer<CallState, CallEventsActions> = (state = CALLS_INITIAL_STATE, action) => {
switch (action.type) {
case START_INCOMING_CALL:{}
}
}
export default callEventsReducer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment