Skip to content

Commit

Permalink
build: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley committed Jul 28, 2022
1 parent a46c938 commit 1474f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allotment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
SplitViewOptions,
} from "./split-view";

function isPane(item: React.ReactNode): item is typeof Pane {
function isPane(item: React.ReactNode | typeof Pane): item is typeof Pane {
return (item as any).type.displayName === "Allotment.Pane";
}

Expand Down

0 comments on commit 1474f64

Please sign in to comment.