Tweak the way the config/api globals are structured (closes #50)

This commit is contained in:
Oliver 2026-03-29 01:27:26 -06:00
parent 2d6db98530
commit c9ad0d8a4e
3 changed files with 30 additions and 22 deletions

View file

@ -13,24 +13,18 @@ import { toID } from "./utils/toID.mjs";
const { deepFreeze } = foundry.utils;
Object.defineProperty(
globalThis,
`taf`,
{
value: deepFreeze({
DialogManager,
QueryManager,
Apps: {
Ask,
AttributeManager,
PlayerSheet,
QueryStatus,
},
utils: {
attributeSorter,
localizer,
toID,
},
}),
export const api = deepFreeze({
DialogManager,
QueryManager,
Apps: {
Ask,
AttributeManager,
PlayerSheet,
QueryStatus,
},
);
utils: {
attributeSorter,
localizer,
toID,
},
});