Fighting TS isn't worth the effort
This commit is contained in:
parent
990a7c1bed
commit
1c737b3dc4
4 changed files with 2837 additions and 103 deletions
90
foundry-augments.d.ts
vendored
90
foundry-augments.d.ts
vendored
|
|
@ -1,90 +0,0 @@
|
|||
// Type definitions for Foundry VTT v11
|
||||
// Definitions by: Oliver Akins
|
||||
|
||||
namespace foundry {
|
||||
export const data: any;
|
||||
export const abstract: any;
|
||||
}
|
||||
|
||||
interface Game {
|
||||
/**
|
||||
* The named view which is currently active.
|
||||
* Game views include: join, setup, players, license, game, stream
|
||||
*/
|
||||
readonly view: string;
|
||||
|
||||
/** The object of world data passed from the server */
|
||||
readonly data: object;
|
||||
|
||||
/** The Release data for this version of Foundry */
|
||||
readonly release: config.ReleaseData;
|
||||
|
||||
/** The id of the active World user, if any */
|
||||
readonly userId: string | null;
|
||||
|
||||
/** A mapping of WorldCollection instances, one per primary Document type. */
|
||||
readonly collections: Collection<string, WorldCollection>
|
||||
|
||||
/** A mapping of CompendiumCollection instances, one per Compendium pack. */
|
||||
readonly packs: CompendiumPacks<string,CompendiumCollection>;
|
||||
|
||||
/** A singleton web Worker manager. */
|
||||
readonly workers: WorkerManager;
|
||||
|
||||
/** Localization support */
|
||||
readonly i18n: Localization;
|
||||
|
||||
/** The Keyboard Manager */
|
||||
readonly keyboard: KeyboardManager;
|
||||
|
||||
/** The Mouse Manager */
|
||||
readonly mouse: MouseManager;
|
||||
|
||||
/** The Gamepad Manager */
|
||||
readonly gamepad: GamepadManager;
|
||||
|
||||
/** The New User Experience manager. */
|
||||
readonly nue: NewUserExperience;
|
||||
|
||||
/** The client session id which is currently active */
|
||||
readonly sessionId: string;
|
||||
|
||||
/** Client settings which are used to configure application behavior */
|
||||
readonly settings: ClientSettings;
|
||||
|
||||
/** Client keybindings which are used to configure application behavior */
|
||||
readonly keybindings: ClientKeybindings;
|
||||
|
||||
/** A reference to the open Socket.io connection */
|
||||
readonly socket: WebSocket | null;
|
||||
|
||||
/**
|
||||
* A singleton GameTime instance which manages the progression of time within
|
||||
* the game world.
|
||||
*/
|
||||
readonly time: GameTime;
|
||||
|
||||
/** A singleton reference to the Canvas object which may be used. */
|
||||
readonly canvas: Canvas;
|
||||
|
||||
/** A singleton instance of the Audio Helper class */
|
||||
readonly audio: AudioHelper;
|
||||
|
||||
/** A singleton instance of the Video Helper class */
|
||||
readonly video: VideoHelper;
|
||||
|
||||
/** A singleton instance of the TooltipManager class. */
|
||||
readonly tooltip: TooltipManager;
|
||||
|
||||
/** A singleton instance of the Clipboard Helper class. */
|
||||
readonly clipboard: ClipboardHelper;
|
||||
|
||||
/** A singleton instance of the Tour collection class */
|
||||
readonly tours: Tours;
|
||||
|
||||
/** The global document index. */
|
||||
readonly documentIndex: DocumentIndex;
|
||||
|
||||
/** The singleton instance of the ClientIssues manager. */
|
||||
readonly issues: ClientIssues;
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"checkJs": true,
|
||||
"target": "ES6",
|
||||
"types": [
|
||||
"./foundry-augments.d.ts"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"./module/**/*",
|
||||
"foundry.js"
|
||||
]
|
||||
}
|
||||
2836
package-lock.json
generated
2836
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -4,6 +4,7 @@
|
|||
"build": "sass --embed-source-map --no-error-css styles/:.styles/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@league-of-foundry-developers/foundry-vtt-types": "^9.280.0",
|
||||
"sass": "^1.69.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue