Skip to content

Commit

Permalink
Merge pull request #2955 from League-of-Foundry-Developers/DocumentDi…
Browse files Browse the repository at this point in the history
…rectory#documents-fix

Deprecation + bugfix
  • Loading branch information
LukeAbby authored Dec 9, 2024
2 parents 9043e68 + fb1dd09 commit 6bf0037
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
33 changes: 28 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/foundry/client/apps/sidebar/document-directory.d.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { ConfiguredDocumentClassForName } from "../../../../types/helperTypes.d.mts";
import type Document from "../../../common/abstract/document.d.mts";

declare global {
Expand Down Expand Up @@ -29,7 +28,7 @@ declare global {
/**
* References to the set of Documents which are displayed in the Sidebar
*/
documents: FolderType extends Document.Type ? InstanceType<ConfiguredDocumentClassForName<FolderType>> : undefined;
documents: FolderType extends Document.Type ? Document.ConfiguredInstanceForName<FolderType>[] : undefined;

/**
* Reference the set of Folders which exist in this Sidebar
Expand Down

0 comments on commit 6bf0037

Please sign in to comment.