Skip to content

Instantly share code, notes, and snippets.

View seanmhanson's full-sized avatar

Seán Hanson seanmhanson

View GitHub Profile
@seanmhanson
seanmhanson / setupStoreWithApi.ts
Created July 20, 2022 15:23
RTK Query Testing Utils - Setup API Store
import {
AnyAction,
combineReducers,
configureStore,
EnhancedStore,
Middleware,
Reducer,
} from '@reduxjs/toolkit';
import { CurriedGetDefaultMiddleware as GetDefaultMiddleware } from '@reduxjs/toolkit/dist/getDefaultMiddleware';
@seanmhanson
seanmhanson / stringEnumsAndObjects.ts
Created September 27, 2022 19:43
String Enums and Objects in TS
enum Muses {
CALLIOPE = 'calliope',
CLIO = 'clio',
EUTERPE = 'euterpe',
THALIA = 'thalia',
MELPOMENE = 'melpomene',
TERPSICHORE = 'terpsichore',
ERATO = 'erato',
POLYHYMNIA = 'polyhymnia',
URANIA = 'urania',