blob: 2d4de1dc4a643de24d9e54406914a4b685a7e6f0 [file] [log] [blame]
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;
}
/**
* If used as ESM, then we export a const of type "DialogPolyfillType" as the default.
*/
declare const dialogPolyfill: DialogPolyfillType
export default dialogPolyfill;