From c59e1508889bd2a7b0dd6c9e457c108bf893d10f Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 31 Dec 2023 09:51:13 +1100 Subject: [PATCH] chore: prettier --- packages/react-resizable-panels/src/Panel.ts | 5 ++++- packages/react-resizable-panels/src/PanelGroup.ts | 5 ++++- packages/react-resizable-panels/src/PanelResizeHandle.ts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/react-resizable-panels/src/Panel.ts b/packages/react-resizable-panels/src/Panel.ts index 322780c07..d31bdda61 100644 --- a/packages/react-resizable-panels/src/Panel.ts +++ b/packages/react-resizable-panels/src/Panel.ts @@ -54,7 +54,10 @@ export type ImperativePanelHandle = { resize: (size: number) => void; }; -export type PanelProps = Omit, "id" | "onResize"> & +export type PanelProps = Omit< + HTMLAttributes, + "id" | "onResize" +> & PropsWithChildren<{ className?: string; collapsedSize?: number | undefined; diff --git a/packages/react-resizable-panels/src/PanelGroup.ts b/packages/react-resizable-panels/src/PanelGroup.ts index f88455f1c..ad8d374f8 100644 --- a/packages/react-resizable-panels/src/PanelGroup.ts +++ b/packages/react-resizable-panels/src/PanelGroup.ts @@ -68,7 +68,10 @@ const defaultStorage: PanelGroupStorage = { }, }; -export type PanelGroupProps = Omit, "id"> & +export type PanelGroupProps = Omit< + HTMLAttributes, + "id" +> & PropsWithChildren<{ autoSaveId?: string | null; className?: string; diff --git a/packages/react-resizable-panels/src/PanelResizeHandle.ts b/packages/react-resizable-panels/src/PanelResizeHandle.ts index b1f960734..42aac59df 100644 --- a/packages/react-resizable-panels/src/PanelResizeHandle.ts +++ b/packages/react-resizable-panels/src/PanelResizeHandle.ts @@ -25,7 +25,10 @@ import { getCursorStyle } from "./utils/cursor"; export type PanelResizeHandleOnDragging = (isDragging: boolean) => void; -export type PanelResizeHandleProps = Omit, "id"> & +export type PanelResizeHandleProps = Omit< + HTMLAttributes, + "id" +> & PropsWithChildren<{ className?: string; disabled?: boolean;