vmui: fix QueryEditorAutocompleteProps typing

This commit is contained in:
Yury Molodov 2024-09-27 13:34:22 +02:00
parent b4fb8ea604
commit bb58183dc6
No known key found for this signature in database
GPG key ID: 79AD43149C47BDE7

View file

@ -1,4 +1,4 @@
import React, { FC, Ref, useEffect, useRef, useState } from "preact/compat";
import React, { FC, useEffect, useRef, useState } from "preact/compat";
import { KeyboardEvent } from "react";
import { ErrorTypes } from "../../../types";
import TextField from "../../Main/TextField/TextField";
@ -12,7 +12,7 @@ import debounce from "lodash.debounce";
export interface QueryEditorAutocompleteProps {
value: string;
anchorEl: Ref<HTMLInputElement>;
anchorEl: React.RefObject<HTMLInputElement>;
caretPosition: [number, number]; // [start, end]
hasHelperText: boolean;
onSelect: (val: string, caretPosition: number) => void;