-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Expected behavior and actual behavior.
When I use Plusnew with the latest Typescript version 5.2.2,
the Typescript compiler shows the following error messages:
File:
node_modules/@plusnew/enzyme-adapter/src/helpers.ts:28:33
@plusnew/enzyme-adapter/src/helpers.ts:25:3
Error:
Type 'props' does not satisfy the constraint 'Partial<props & { children: any; }>'.
File:
node_modules/@plusnew/i18n/src/util/functional.ts:10:18
Error:
error TS2769: No overload matches this call. Overload 1 of 2, '(o: { [s: string]: unknown; } | ArrayLike<unknown>): [string, unknown][]', gave the following error. Argument of type 'T' is not assignable to parameter of type '{ [s: string]: unknown; } | ArrayLike<unknown>'. Type 'T' is not assignable to type 'ArrayLike<unknown>'. Overload 2 of 2, '(o: {}): [string, any][]', gave the following error. Argument of type 'T' is not assignable to parameter of type '{}'.
File:
node_modules/@plusnew/state/src/components/repositoryFactory/index.tsx:326:24
Error:
- error TS2532: Object is possibly 'undefined'.
File:
node_modules/@plusnew/state/src/util/forEach.ts:6:18
Error:
error TS2769: No overload matches this call. Overload 1 of 2, '(o: { [s: string]: unknown; } | ArrayLike<unknown>): [string, unknown][]', gave the following error. '{ [s: string]: unknown; } | ArrayLike<unknown>'.
Steps to reproduce the problem.
TSconfig Settings:
{ "include": [ "./src/**/*", "./testUtils/**/*" ], "compilerOptions": { "sourceMap": true, "target": "ESNEXT", "module": "ESNEXT", "moduleResolution": "node", "resolveJsonModule": true, "allowSyntheticDefaultImports": true, "allowJs": true, "jsx": "react", "reactNamespace": "plusnew", "outDir": "./dist/", "strict": true, "noImplicitAny": true, "strictNullChecks": true, "alwaysStrict": true, "noUnusedLocals": true, "noUnusedParameters": true, "baseUrl": "./src/", "downlevelIteration": true, "plugins": [] } }
Specifications like the version of the project or browser version
"@plusnew/core": "^1.7.9",
"@plusnew/dnd": "^1.1.2",
"@plusnew/driver-dom": "^1.5.1",
"@plusnew/i18n": "^0.2.2",
"@plusnew/router": "^3.0.0",
Thank you for your support.