export type State = { currentUserId: string, } export type Plugin = (config: T) => (state: State) => void