-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hi, in my project i use toolkit 2.0.0 and i have type check build during emit declaration files only with isolatedModules: true
option in tsconfig:
{
"compilerOptions": {
"target": "ES2021",
"moduleResolution": "Bundler",
"baseUrl": ".",
"jsx": "react-jsx",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUncheckedIndexedAccess": true,
"outDir": "dist/types",
"declaration": true,
"sourceMap": true,
"emitDeclarationOnly": true,
"isolatedModules": true
},
"include": ["src"],
"exclude": ["node_modules", "*.test.*", "**/__test__/*"]
}
i have error:
src/internal/core/redux/index.ts:64:14 - error TS2742: The inferred type of 'reducer' cannot be named without a reference to '../../../../node_modules/@reduxjs/toolkit/dist/createReducer'. This is likely not portable. A type annotation is necessary.
Can we add export of ReducerWithInitialState from entry point of package?
Metadata
Metadata
Assignees
Labels
No labels