From 0b7454a2e0e85904a02163f2b05d6ac50938774f Mon Sep 17 00:00:00 2001 From: Rajat Saxena Date: Tue, 24 Dec 2024 00:22:07 +0530 Subject: [PATCH] Fix typescript types --- packages/text-editor/package.json | 1 + packages/text-editor/tsconfig.json | 5 ++++- yarn.lock | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/text-editor/package.json b/packages/text-editor/package.json index 5f779e4d0..ce9ac8451 100644 --- a/packages/text-editor/package.json +++ b/packages/text-editor/package.json @@ -55,6 +55,7 @@ }, "devDependencies": { "@types/node": "^18.8.0", + "@types/react": "^17.0.43", "eslint": "^8.57.0", "rimraf": "^4.1.1", "tsconfig": "workspace:^", diff --git a/packages/text-editor/tsconfig.json b/packages/text-editor/tsconfig.json index ae695a62b..f5a87cd17 100644 --- a/packages/text-editor/tsconfig.json +++ b/packages/text-editor/tsconfig.json @@ -5,7 +5,10 @@ "outDir": "./dist", "lib": ["dom"], "strict": false, - "experimentalDecorators": false + "experimentalDecorators": false, + "paths": { + "react": ["./node_modules/@types/react"] + } }, "include": ["src/**/*"] } diff --git a/yarn.lock b/yarn.lock index 600a59a98..8585a2034 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1837,6 +1837,7 @@ __metadata: "@remirror/react-editors": ^2.0.1 "@remirror/react-ui": ^1.0.1 "@types/node": ^18.8.0 + "@types/react": ^17.0.43 codemirror: ^6.0.1 eslint: ^8.57.0 remirror: ^3.0.1