Skip to content

Possible richer ConnectResponse type in '@redux-devtools/extension' #1097

Open
@dai-shi

Description

@dai-shi

Can ConnectResponse in '@redux-devtools/extension'

interface ConnectResponse {
init: (state: unknown) => void;
send: (action: Action<unknown>, state: unknown) => void;
}

be compatible with or imported from

export interface ConnectResponse {
init: <S, A extends Action<unknown>>(
state: S,
liftedData?: LiftedState<S, A, unknown>
) => void;
subscribe: <S, A extends Action<unknown>>(
listener: (message: ListenerMessage<S, A>) => void
) => (() => void) | undefined;
unsubscribe: () => void;
send: <S, A extends Action<unknown>>(
action: A,
state: LiftedState<S, A, unknown>
) => void;
error: (payload: string) => void;
}

which seems more precise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions