Allow deleting countdowns via right click context menu on the main panel (#2090)

This commit is contained in:
Carlos Fernandez 2026-07-19 05:35:55 -04:00 committed by GitHub
parent effab8db0c
commit 3efdcb6c9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 118 additions and 36 deletions

13
daggerheart.d.ts vendored
View file

@ -11,6 +11,9 @@ import * as documents from './module/documents/_module.mjs';
import { macros } from './module/_module.mjs';
import * as dice from './module/dice/_module.mjs';
import * as fields from './module/data/fields/_module.mjs';
import { gameSettings } from './module/config/settingsConfig.mjs';
import DhCountdowns from './module/data/countdowns.mjs';
import DhAutomation from './module/data/settings/Automation.mjs';
// Foundry's use of `Object.assign(globalThis) means many globally available objects are not read as such
@ -103,3 +106,13 @@ declare module '@client/packages/system.mjs' {
};
}
}
declare module '@client/helpers/client-settings.mjs' {
// Add explicit typed overrides for auto complete. These require /** @type {"string"} on the vars themselves to work */
export default interface ClientSettings {
get(namespace: 'daggerheart', key: typeof gameSettings.Automation): DhAutomation;
get(namespace: 'daggerheart', key: typeof gameSettings.Homebrew): DhHomebrew;
get(namespace: 'daggerheart', key: typeof gameSettings.Countdowns): DhCountdowns;
get(namespace: 'daggerheart', key: string): unknown;
}
}