Skip to content

Commit

Permalink
Merge pull request #560 from RJWadley/patch-type
Browse files Browse the repository at this point in the history
fix(types): update resizeTo ref type
  • Loading branch information
trezy authored Jan 4, 2025
2 parents 549bed2 + 068eec3 commit 60dd9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typedefs/ApplicationProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface BaseApplicationProps
onInit?: (app: Application) => void

/** @description An element (or React ref) to which the application's canvas will be resized. */
resizeTo?: HTMLElement | Window | RefObject<HTMLElement>
resizeTo?: HTMLElement | Window | RefObject<HTMLElement | null>
}

export type ApplicationProps = BaseApplicationProps & Partial<{
Expand Down

0 comments on commit 60dd9ff

Please sign in to comment.