Skip to content

Instantly share code, notes, and snippets.

@beefsack
Created May 16, 2017 00:48
Show Gist options
  • Select an option

  • Save beefsack/23fe5fc674f6224b09a4ce54d164d2c5 to your computer and use it in GitHub Desktop.

Select an option

Save beefsack/23fe5fc674f6224b09a4ce54d164d2c5 to your computer and use it in GitHub Desktop.
// The following does not work.
export const FETCH_ACTIVE_GAMES = "brdgme/game/FETCH_ACTIVE_GAMES";
export interface IFetchActiveGames {
type: FETCH_ACTIVE_GAMES;
}
export const fetchActiveGames = (): IFetchActiveGames => ({
type: FETCH_ACTIVE_GAMES,
});
// The following works.
export const FETCH_ACTIVE_GAMES = "brdgme/game/FETCH_ACTIVE_GAMES";
export interface IFetchActiveGames {
type: "brdgme/game/FETCH_ACTIVE_GAMES";
}
export const fetchActiveGames = (): IFetchActiveGames => ({
type: FETCH_ACTIVE_GAMES,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment