Skip to content

Commit

Permalink
fix(types): update resizeTo ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
RJWadley authored and trezy committed Jan 4, 2025
1 parent 549bed2 commit 068eec3
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 068eec3

Please sign in to comment.