-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.d.ts
39 lines (34 loc) · 1.05 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
interface Window {
dateLocale: string | undefined;
root: AnyPost;
subtreeRoot: AnyPost;
loadInfohazard: (() => void) | undefined;
}
declare var accountAPI: BlueskyAPI;
declare var blueAPI: BlueskyAPI;
declare var appView: BlueskyAPI;
declare var api: BlueskyAPI;
declare var isIncognito: boolean;
declare var biohazardEnabled: boolean;
declare var loginDialog: AnyElement;
type SomeElement = Element | HTMLElement | AnyElement;
type json = Record<string, any>;
interface AnyElement {
classList: CSSClassList;
className: string;
innerText: string;
nextElementSibling: AnyElement;
parentNode: AnyElement;
src: string;
style: CSSStyleDeclaration;
addEventListener<K extends keyof DocumentEventMap>(
type: K, listener: EventListenerOrEventListenerObject
): void;
append(...e: Array<string | SomeElement>): void;
appendChild(e: SomeElement): void;
querySelector(q: string): AnyElement;
prepend(...e: Array<string | SomeElement>): void;
remove(): void;
replaceChildren(e: SomeElement): void;
replaceWith(e: SomeElement): void;
}