Skip to content

Commit

Permalink
added proper attribution for initial StackExchange type definition; a…
Browse files Browse the repository at this point in the history
…dded missing ModalType interface
  • Loading branch information
Oaphi committed Aug 1, 2021
1 parent 9849878 commit 4bd6a6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bd6a6b

Please sign in to comment.