假设我有以下几点:
interface Validator {
validate: (value: string) => boolean;
errorMessage: string;
}
interface EditDialogField {
label: string;
prop: string;
required?: boolean;
type: 'input';
validators?: Validator[];
}
这很有用,因为当我使用这些接口时,IntelliSense会弹出建议,但我希望能够添加也在IntelliSense中显示的注释(特别是VS代码).这可能吗?