mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import ModalDialog from 'ember-modal-dialog/components/modal-dialog';
|
|
|
|
class MyDialog extends ModalDialog {
|
|
// https://www.npmjs.com/package/ember-modal-dialog#configurable-properties
|
|
testProperties() {
|
|
this.hasOverlay; // $ExpectType boolean
|
|
this.translucentOverlay; // $ExpectType boolean
|
|
this.onClose();
|
|
this.onClickOverlay();
|
|
this.clickOutsideToClose; // $ExpectType boolean
|
|
this.renderInPlace; // $ExpectType boolean
|
|
this.overlayPosition; // $ExpectType "parent" | "sibling"
|
|
this.containerClass; // $ExpectType string
|
|
this.containerClassNames; // $ExpectType string[]
|
|
this.overlayClass; // $ExpectType string
|
|
this.overlayClassNames; // $ExpectType string[]
|
|
this.wrapperClass; // $ExpectType string
|
|
this.wrapperClassNames; // $ExpectType string[]
|
|
this.animatable; // $ExpectType boolean
|
|
}
|
|
}
|
|
|
|
class MyOtherDialog extends ModalDialog.extend({
|
|
testProperties() {
|
|
this.hasOverlay; // $ExpectType boolean
|
|
}
|
|
}) {}
|