Skip to content

Commit c0a6e1d

Browse files
committed
v0fix: fixed type issue
1 parent 14953af commit c0a6e1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/runtime/layout/getFrameSplitInfo.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export function getFrameSplitInfo(
1818
dragPointOrPosition: Point | number | "midpoint" = "midpoint",
1919
minSize: Size = getMarginSize(),
2020
snapAmount: Point = getSnapPoint()
21-
) {
21+
): {
22+
splitFrame: LayoutFrame
23+
newFrame: LayoutFrame
24+
} | KnownError<typeof LAYOUT_ERROR.CANT_SPLIT_FRAME_TOO_SMALL> {
2225
frame = cloneFrame(frame)
2326
let newFrame = { ...frame }
2427
const isHorz = dir === "left" || dir === "right"

0 commit comments

Comments
 (0)