export type InitialState = T | (() => T);