Skip to content

Commit

Permalink
Merge pull request #778 from wellyshen/fix-types
Browse files Browse the repository at this point in the history
Fix the type of the width and height
  • Loading branch information
wellyshen authored Mar 8, 2023
2 parents 45ed77b + b1fc3c3 commit 9a096ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react-cool-dimensions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ declare module "react-cool-dimensions" {

export interface State {
readonly currentBreakpoint: string;
readonly width: number;
readonly height: number;
readonly width: number | null;
readonly height: number | null;
readonly entry?: ResizeObserverEntry;
}

Expand Down

0 comments on commit 9a096ec

Please sign in to comment.