Skip to content

Commit 677e81c

Browse files
committed
chore: remove react type compatibility shim
1 parent a9fd760 commit 677e81c

3 files changed

Lines changed: 1 addition & 16 deletions

File tree

react-compat.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Mentions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ const InternalMentions = forwardRef<MentionsRef, InternalMentionsProps>(
510510
};
511511

512512
// ============================ Focus Blur ============================
513-
const focusRef = useRef<number>();
513+
const focusRef = useRef<number | undefined>(undefined);
514514

515515
const onInternalFocus = (event?: React.FocusEvent<HTMLTextAreaElement>) => {
516516
window.clearTimeout(focusRef.current);

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"module": "ESNext"
2222
},
2323
"include": [
24-
"react-compat.d.ts",
2524
"global.d.ts",
2625
".dumirc.ts",
2726
".fatherrc.ts",

0 commit comments

Comments
 (0)