From 4bd6a6bb7e2aa91133b11c57173b0525f376fa20 Mon Sep 17 00:00:00 2001 From: Oleg Valter Date: Sun, 1 Aug 2021 04:51:13 +0300 Subject: [PATCH] added proper attribution for initial StackExchange type definition; added missing ModalType interface --- index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.d.ts b/index.d.ts index 9f9d6eb..b9062eb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -73,7 +73,16 @@ declare global { ): void; } + // initial definition of the StackExchange global by double-beep https://github.com/double-beep from: + // https://github.com/SOBotics/AdvancedFlagging/blob/1945787f9d3d01b5aa84bc6cff3f1da358aaf8c0/src/GlobalVars.ts + namespace StackExchange { + interface ModalType { + title: string; + bodyHtml: string; + buttonLabel: string; + } + const helpers: { hideToasts(): void; isInNetwork(url: string): boolean;