Typings problem with @types/select2 library #53879
Unanswered
xxxKOTxxx
asked this question in
Issues with a @types package
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem caused by next definition:
export interface DataFormat {
id: number | string;
text: string;
selected?: boolean;
disabled?: boolean;
}
As mentioned in this issue we can handle dropdown title by adding according property title. But currently it causes conflict with interface (same for html property). OptionData and OptGroupData are not suitable because has other semantic and contains required props like disabled, etc..
Please, update DataFormat interface by adding optional properties title?: string; and html?: string;. Possibly it has other undocumented properties?
If I need to use another interface, please mention it in comments.
Reproducing on "@types/select2": "^4.0.53"
Best regards, Borys
Beta Was this translation helpful? Give feedback.
All reactions