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

redux and typescript [7:59pm] #48

Closed
frankcollins3 opened this issue May 27, 2023 · 3 comments
Closed

redux and typescript [7:59pm] #48

frankcollins3 opened this issue May 27, 2023 · 3 comments

Comments

@frankcollins3
Copy link
Owner

considering typesafe redux actions and store

Screen Shot 2023-05-26 at 7 58 54 PM

@frankcollins3
Copy link
Owner Author

microsoft/TypeScript#27481

👎 // @ts-ignore (id prefer not)
[8:01pm]

@frankcollins3
Copy link
Owner Author

another attempt is to change the name of the actions.js file so actionObject only corresponds to the typescript file.

[8:05pm]

@frankcollins3
Copy link
Owner Author

{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"allowImportingTsExtensions": true
},
"include": ["src"]
}

The other suggested approach above would've worked I think.

[8:06pm]

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

No branches or pull requests

1 participant