Renovate bot | f591dcf | 2023-12-30 14:13:54 +0000 | [diff] [blame] | 1 | |
| 2 | interface 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 | */ |
| 10 | declare 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 | */ |
| 17 | declare const dialogPolyfill: DialogPolyfillType |
| 18 | export default dialogPolyfill; |