#98 jsconfig and symlink setup (#99)

* FEAT: add jsconfig.json file

* FEAT: add new script createSymlink
FEAT: add new file tools/create-symlink.mjs
FEAT: add d.ts files
FIX: add new foundry symlink to .gitignore

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
This commit is contained in:
joaquinpereyra98 2025-05-31 21:54:45 -03:00 committed by GitHub
parent d30ae91109
commit 879299b661
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 92 additions and 2 deletions

21
daggerheart.d.ts vendored Normal file
View file

@ -0,0 +1,21 @@
import './module/_types';
import '@client/global.mjs';
import Canvas from '@client/canvas/board.mjs';
// Foundry's use of `Object.assign(globalThis) means many globally available objects are not read as such
// This declare global hopefully fixes that
declare global {
/**
* A simple event framework used throughout Foundry Virtual Tabletop.
* When key actions or events occur, a "hook" is defined where user-defined callback functions can execute.
* This class manages the registration and execution of hooked callback functions.
*/
class Hooks extends foundry.helpers.Hooks {}
const fromUuid = foundry.utils.fromUuid;
const fromUuidSync = foundry.utils.fromUuidSync;
/**
* The singleton game canvas
*/
const canvas: Canvas;
}