2020-07-27 03:08:34 +03:00
|
|
|
|
|
|
|
interface DialogPolyfillType {
|
|
|
|
registerDialog(dialog: HTMLDialogElement): void;
|
|
|
|
forceRegisterDialog(dialog: HTMLDialogElement): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If used as CJS, then "dialogPolyfill" is added to the global scope. Just assert it exists.
|
|
|
|
*/
|
|
|
|
declare global {
|
|
|
|
const dialogPolyfill: DialogPolyfillType;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-11-06 19:45:51 +03:00
|
|
|
* If used as ESM, then we export a const of type "DialogPolyfillType" as the default.
|
2020-07-27 03:08:34 +03:00
|
|
|
*/
|
2020-11-06 19:45:51 +03:00
|
|
|
declare const dialogPolyfill: DialogPolyfillType
|
2020-11-09 10:47:48 +03:00
|
|
|
export default dialogPolyfill;
|