How to get autocomplete when using VUE3 Components?

VUE3 Component 如何编写辅助文件让IDE支持提示功能,如props,expose instance methods

Did you define the props with defineProps?

Thank you for your attention and reply.

interface Props {
scope?: string;
ident: string;
type?: number;
checkStrictly?: boolean;
multiple?: boolean;
modelValue?: number | number[];
placeholder?: string;

interface Emits {
(e: “update:modelValue”, modelValue: number | number[]): void;

const props = withDefaults(defineProps(), {
scope: “global”,
placeholder: “”,
multiple: false,
type: 1,