mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-15 17:46:55 +00:00
Initial commit for converting FrankerFaceZ to TypeScript.
This commit is contained in:
parent
ba72969c51
commit
b9d23accf0
86 changed files with 8673 additions and 5005 deletions
31
types/getScreenDetails.d.ts
vendored
Normal file
31
types/getScreenDetails.d.ts
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
export interface ScreenDetailed extends Screen {
|
||||
|
||||
readonly availLeft: number;
|
||||
readonly availTop: number;
|
||||
readonly devicePixelRatio: number;
|
||||
readonly isInternal: boolean;
|
||||
readonly isPrimary: boolean;
|
||||
readonly label: string;
|
||||
readonly left: number;
|
||||
readonly top: number;
|
||||
|
||||
}
|
||||
|
||||
export interface ScreenDetails extends EventTarget {
|
||||
|
||||
readonly currentScreen: ScreenDetailed;
|
||||
|
||||
readonly screens: ScreenDetailed[];
|
||||
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
||||
interface Window {
|
||||
getScreenDetails: (() => Promise<ScreenDetails>) | undefined;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export {}
|
Loading…
Add table
Add a link
Reference in a new issue