dialog-polyfill/index.d.ts

19 строки
483 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-11-09 10:47:48 +03:00
export default dialogPolyfill;