@aurelia/dialog throws TS error in beta21

I’m getting a ts error after updating to beta21. I’m customised the dialog ui elements as documented here: https://docs.aurelia.io/aurelia-packages/dialog#styling-the-overlay and the following error is displayed in vscode and in the log when building the app:

error TS2741: Property ‘wrapper’ is missing in type ‘IDialogDom’ but required in type ‘DefaultDialogDom’

Any help would be appreciated,

Thanks.

The issue you got seems to be because of the incorrect doc, it should have been a cast:

export class MyDialog {
  constructor(dialogDom = resolve(IDialogDom) as DefaultDialogDom) {
    dialogDom.overlay.style.backgroundColor = "rgba(0, 0, 0, 0.5)";
  }
}