Closed rjz closed 7 years ago
E.g. in src/reducers/Store, the Store namespace can be flattened out:
src/reducers/Store
Store
export type Counter = { value: number, } export type All = { counter: Counter, isSaving: boolean, isLoading: boolean, error: string, }
...and its effect still captured nicely via import:
import * as store from './src/reducers/store' const state: store.All = // ...
HT @egmanoj for the suggestion!
E.g. in
src/reducers/Store
, theStore
namespace can be flattened out:...and its effect still captured nicely via import:
HT @egmanoj for the suggestion!