forked from foundryvtt/pf2e
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust types and client code to load in Foundry V12
- Loading branch information
1 parent
118aab5
commit 3868fe0
Showing
24 changed files
with
118 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 16 additions & 18 deletions
34
types/foundry/client/application/form-application/document-sheet/user-config.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as sheets from "./sheets.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { UserConfig } from "../../application/form-application/document-sheet/user-config.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "../../../common/data/module.ts"; | ||
export { ClientDatabaseBackend } from "../../data/abstract/client-backend.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** Abstract class definitions for fundamental concepts used throughout the Foundry Virtual Tabletop framework. */ | ||
export * as abstract from "../../common/abstract/module.ts"; | ||
/** Constant definitions used throughout the Foundry Virtual Tabletop framework. */ | ||
export * as CONST from "../../common/constants.ts"; | ||
/** Document definitions used throughout the Foundry Virtual Tabletop framework. */ | ||
export * as documents from "../../common/documents/module.ts"; | ||
/** Package data definitions, validations, and schema. */ | ||
export * as packages from "../../common/packages/module.ts"; | ||
/** Utility functions providing helpful functionality. */ | ||
export * as utils from "../../common/utils/module.ts"; | ||
export * as applications from "./applications/index.ts"; | ||
/** Data schema definitions for data models. */ | ||
export * as data from "./data/index.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
import type GSAP from "gsap"; | ||
import type HANDLEBARS from "handlebars"; | ||
import { showdown as SHOWDOWN } from "showdownf"; | ||
import "gsap"; | ||
import "handlebars"; | ||
import SHOWDOWN from "showdown"; | ||
import * as Foundry from "./foundry/index.ts"; | ||
|
||
declare global { | ||
const CONST: typeof Constants; | ||
|
||
namespace globalThis { | ||
const Color = Utils.Color; | ||
export import Handlebars = HANDLEBARS; | ||
const gsap = GSAP; | ||
export import showdown = SHOWDOWN; | ||
|
||
namespace foundry { | ||
const CONST = Constants; | ||
const abstract = Abstract; | ||
const data = Data; | ||
const documents = Documents; | ||
const utils = Utils; | ||
} | ||
export import CONST = Foundry.CONST; | ||
export import Color = Foundry.utils.Color; | ||
export import foundry = Foundry; | ||
const showdown: typeof SHOWDOWN; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from "./data.ts"; | ||
export * as fields from "./fields.ts"; | ||
export * as validation from "./validation-failure.ts"; | ||
export * as validators from "./validators.ts"; | ||
export * from "./data.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,3 @@ | ||
import * as Abstract from "./abstract/module.ts"; | ||
import * as Constants from "./constants.ts"; | ||
import * as Data from "./data/module.ts"; | ||
import * as Documents from "./documents/module.ts"; | ||
import * as Packages from "./packages/module.ts"; | ||
import * as Utils from "./utils/module.ts"; | ||
|
||
// global-modifying module | ||
import "./primitives/module.d.ts"; | ||
import "./types.ts"; | ||
|
||
declare global { | ||
const CONST: typeof Constants; | ||
namespace globalThis { | ||
namespace foundry { | ||
/** Constant definitions used throughout the Foundry Virtual Tabletop framework. */ | ||
export import CONST = Constants; | ||
/** Abstract class definitions for fundamental concepts used throughout the Foundry Virtual Tabletop framework. */ | ||
export import abstract = Abstract; | ||
/** Data schema definitions for data models. */ | ||
export import data = Data; | ||
/** Document definitions used throughout the Foundry Virtual Tabletop framework. */ | ||
export import documents = Documents; | ||
/** Package data definitions, validations, and schema. */ | ||
export import packages = Packages; | ||
/** Utility functions providing helpful functionality. */ | ||
export import utils = Utils; | ||
} | ||
} | ||
} |
Oops, something went wrong.