Typescript definition for `CustomDialogOptions` missing `popupOptions` property
alfeg opened this issue · 2 comments
alfeg commented
Typescript definition for CustomDialogOptions
missing popupOptions
property
Steps to Reproduce:
Using following typescript snippet
import { custom } from "devextreme/ui/dialog"
const dialog = custom({
popupOptions: {
position: {
my: "center",
at: "center",
of: "#app",
},
},
}
})
Results You Received:
Typescript error
Argument of type '{ title: any; messageHtml: any; showTitle: boolean; buttons: { text: string; type: "back" | "danger" | "default" | "normal" | "success"; visible: boolean; onClick(): boolean; }[]; dragEnabled: false; popupOptions: { ...; }; }' is not assignable to parameter of type 'CustomDialogOptions'.
Object literal may only specify known properties, and 'popupOptions' does not exist in type 'CustomDialogOptions'.ts(2345)
Results You Expected:
No errors, as custom dialog accepts this property:
Line 174 in 601b0c7
Environment Details:
devextreme: 21.1.4
Bykiev commented