dialog-polyfill/index.d.ts

19 строки
487 B
TypeScript
Исходник Обычный вид История

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;
}
/**
* If used as ESM, then we export a const of type "DialogPolyfillType" as the default.
2020-07-27 03:08:34 +03:00
*/
declare const dialogPolyfill: DialogPolyfillType
2020-08-11 06:20:50 +03:00
export default DialogPolyfillType;