Skip to content

Commit f8a22eb

Browse files
committed
added temp any type for failing strict ts check
1 parent ad360d9 commit f8a22eb

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/AutoSuggestion/AutoSuggestion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ const AutoSuggestion = ({
377377
return { fromOffset, toOffset };
378378
};
379379

380-
const inputActionsDisplayed = React.useCallback((node) => {
380+
const inputActionsDisplayed = React.useCallback((node:any) => {
381381
if (!node) return;
382382
const width = node.offsetWidth;
383383
const slCodeEditor = node.parentElement.getElementsByClassName(`${eccgui}-singlelinecodeeditor`);

src/components/ContextOverlay/ContextOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const ContextOverlay = ({
6666
return () => {};
6767
}, [!!placeholderRef.current]);
6868

69-
const refocus = React.useCallback((node) => {
69+
const refocus = React.useCallback((node:any) => {
7070
if (eventMemory.current === "afterfocus" && node) {
7171
const target = node.targetRef.current.children[0];
7272
if (target) {

src/components/Tooltip/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const Tooltip = ({
123123
return () => {};
124124
}, [!!placeholderRef.current]);
125125

126-
const refocus = React.useCallback((node) => {
126+
const refocus = React.useCallback((node:any) => {
127127
if (eventMemory.current && node) {
128128
// we do not have a `targetRef` here, so we need to workaround it
129129
// const target = node.targetRef.current.children[0];

src/extensions/react-flow/edges/EdgeLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export interface EdgeLabelObjectProps extends React.SVGAttributes<SVGForeignObje
109109
export const EdgeLabelObject = memo(
110110
({ children, edgeCenter, resizeTimeout = -1, ...otherForeignObjectProps }: EdgeLabelObjectProps) => {
111111
const containerCallback = React.useCallback(
112-
(containerRef) => {
112+
(containerRef:any) => {
113113
if (containerRef) labelSize(containerRef);
114114
},
115115
[edgeCenter]

src/extensions/react-flow/nodes/NodeContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
735735
return validatedHeight;
736736
};
737737

738-
const onResize = React.useCallback((_0, _1, _2, d) => {
738+
const onResize = React.useCallback((_0:any, _1:any, _2:any, d:any) => {
739739
if (nodeContentRef.current) {
740740
const nextWidth = resizeDirections.right
741741
? (width ?? originalSize.current.width ?? 0) + d.width
@@ -756,7 +756,7 @@ export function NodeContent<CONTENT_PROPS = React.HTMLAttributes<HTMLElement>>({
756756
}
757757
}, [resizeDirections, originalSize])
758758

759-
const onResizeStop = React.useCallback((_0, _1, _2, d) => {
759+
const onResizeStop = React.useCallback((_0:any, _1:any, _2:any, d:any) => {
760760
const nextWidth = validateWidth((width ?? originalSize.current.width ?? 0) + d.width);
761761
const nextHeight = validateHeight((height ?? originalSize.current.height ?? 0) + d.height);
762762
setWidth(nextWidth);

0 commit comments

Comments
 (0)