Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill in miscellaneous type gaps #13607

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions types/foundry/client/application/sidebar/sidebar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ declare class Sidebar extends Application {
*/
get popouts(): Application[];

/**
* Return the name of the active Sidebar tab
*/
get activeTab(): string;

/**
* Activate a Sidebar tab by it's name
* @param tabName The tab name corresponding to it's "data-tab" attribute
Expand Down
1 change: 1 addition & 0 deletions types/foundry/client/core/hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ declare global {
static once(...args: HookParamsUpdate<Combat, "Combat">): number;
static once(...args: HookParamsUpdate<Scene, "Scene">): number;
static once(...args: HookParamsUpdateWorldTime): number;
static once(...args: HookParamsI18nInit): number;
static once(...args: HookParameters<string, unknown[]>): number;

/**
Expand Down
6 changes: 6 additions & 0 deletions types/foundry/client/pixi/board.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ declare global {
* @param event The originating mouse movement event
*/
_onDragCanvasPan(event: MouseEvent): void;

/**
* Determine selection coordinate rectangle during a mouse-drag workflow
* @param event
*/
_onDragSelect(event: PIXI.FederatedEvent): void;
}

type DrawnCanvas<T extends Canvas = Canvas> = {
Expand Down
Loading