From ac9bf788152bd49335b085cd44a68d56bb227a96 Mon Sep 17 00:00:00 2001 From: typhonrt Date: Sun, 15 Dec 2024 06:33:16 -0800 Subject: [PATCH] Update globals --- src/globals-fvtt.d.ts | 2 ++ .../resolvers/globalNamespace.js | 24 +++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/globals-fvtt.d.ts b/src/globals-fvtt.d.ts index c299ae41..027e6c7b 100644 --- a/src/globals-fvtt.d.ts +++ b/src/globals-fvtt.d.ts @@ -1,5 +1,7 @@ declare global { + export class Application {} export type ApplicationHeaderButton = object; + export type ApplicationOptions = object; export type CompendiumCollection = object; export type DocumentCollection = object; export type EditorView = object; diff --git a/src/plugin/foundry-links/resolvers/globalNamespace.js b/src/plugin/foundry-links/resolvers/globalNamespace.js index 73bf6c8a..0c236821 100644 --- a/src/plugin/foundry-links/resolvers/globalNamespace.js +++ b/src/plugin/foundry-links/resolvers/globalNamespace.js @@ -1,21 +1,25 @@ const symbolMap = new Map([ + ['__global.Application', 'https://foundryvtt.com/api/classes/client.Application.html'], + ['__global.ApplicationOptions', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html'], ['__global.ApplicationHeaderButton', 'https://foundryvtt.com/api/modules/hookEvents.html#ApplicationHeaderButton'], ['__global.foundry.abstract.Document', 'https://foundryvtt.com/api/classes/foundry.abstract.Document.html'], ['__global.game', 'https://foundryvtt.com/api/classes/client.Game.html'], ['__global.DocumentCollection', 'https://foundryvtt.com/api/classes/client.DocumentCollection.html'], ['__global.EnrichmentOptions', 'https://foundryvtt.com/api/interfaces/client.EnrichmentOptions.html'], ['__global.FavoriteFolder', 'https://foundryvtt.com/api/interfaces/client.FavoriteFolder.html'], + ['__global.Folder', 'https://foundryvtt.com/api/classes/client.Folder.html'], ['__global.FontFamilyDefinition', 'https://foundryvtt.com/api/interfaces/client.FontFamilyDefinition.html'], - ['Application', 'https://foundryvtt.com/api/classes/client.Application.html'], - ['Application.maximize', 'https://foundryvtt.com/api/classes/client.Application.html#maximize'], - ['Application.minimize', 'https://foundryvtt.com/api/classes/client.Application.html#minimize'], - ['Application.setPosition', 'https://foundryvtt.com/api/classes/client.Application.html#setPosition'], - ['ApplicationOptions', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html'], - ['ApplicationOptions.popOut', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html#popOut'], - ['ApplicationOptions.title', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html#title'], - ['CombatTracker', 'https://foundryvtt.com/api/classes/client.CombatTracker.html'], - ['FontFamilyDefinition', 'https://foundryvtt.com/api/interfaces/client.FontFamilyDefinition.html'], - ['FormApplication', 'https://foundryvtt.com/api/classes/client.FormApplication.html'], + ['__global.RollTable', 'https://foundryvtt.com/api/classes/client.RollTable.html'], + // ['Application', 'https://foundryvtt.com/api/classes/client.Application.html'], + // ['Application.maximize', 'https://foundryvtt.com/api/classes/client.Application.html#maximize'], + // ['Application.minimize', 'https://foundryvtt.com/api/classes/client.Application.html#minimize'], + // ['Application.setPosition', 'https://foundryvtt.com/api/classes/client.Application.html#setPosition'], + // ['ApplicationOptions', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html'], + // ['ApplicationOptions.popOut', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html#popOut'], + // ['ApplicationOptions.title', 'https://foundryvtt.com/api/interfaces/client.ApplicationOptions.html#title'], + // ['CombatTracker', 'https://foundryvtt.com/api/classes/client.CombatTracker.html'], + // ['FontFamilyDefinition', 'https://foundryvtt.com/api/interfaces/client.FontFamilyDefinition.html'], + // ['FormApplication', 'https://foundryvtt.com/api/classes/client.FormApplication.html'], ]); /**