blob: 2d4de1dc4a643de24d9e54406914a4b685a7e6f0 [file] [log] [blame]
Renovate botf591dcf2023-12-30 14:13:54 +00001
2interface DialogPolyfillType {
3 registerDialog(dialog: HTMLDialogElement): void;
4 forceRegisterDialog(dialog: HTMLDialogElement): void;
5}
6
7/**
8 * If used as CJS, then "dialogPolyfill" is added to the global scope. Just assert it exists.
9 */
10declare global {
11 const dialogPolyfill: DialogPolyfillType;
12}
13
14/**
15 * If used as ESM, then we export a const of type "DialogPolyfillType" as the default.
16 */
17declare const dialogPolyfill: DialogPolyfillType
18export default dialogPolyfill;