Skip to content

Commit

Permalink
Update globals
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonrt committed Dec 15, 2024
1 parent 9089df9 commit ac9bf78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/globals-fvtt.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare global {
export class Application<Options> {}
export type ApplicationHeaderButton = object;
export type ApplicationOptions = object;
export type CompendiumCollection = object;
export type DocumentCollection = object;
export type EditorView = object;
Expand Down
24 changes: 14 additions & 10 deletions src/plugin/foundry-links/resolvers/globalNamespace.js
Original file line number Diff line number Diff line change
@@ -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'],
]);

/**
Expand Down

0 comments on commit ac9bf78

Please sign in to comment.