Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS-Standart Changed My Code and Throwing Error #1935

Open
canerasa93 opened this issue Aug 31, 2023 · 0 comments
Open

TS-Standart Changed My Code and Throwing Error #1935

canerasa93 opened this issue Aug 31, 2023 · 0 comments

Comments

@canerasa93
Copy link

hello @everyone,

i have a code just like this;

declare module 'redux' {
interface Dispatch {
<S, E, R>(asyncAction: ThunkAction<R, S, E, A>): R
}
}

when i use ts-standart, it changed like this;

declare module 'redux' {
type Dispatch = <S, E, R>(asyncAction: ThunkAction<R, S, E, A>) => R
}

and this stuation is throwing error on my app. how can i solve this? can you help us?
the error is = Duplicate identifier 'Dispatch'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants
@canerasa93 and others