From f69005a1985732f962eef4beab30d5881a46610d Mon Sep 17 00:00:00 2001 From: Benjamin Ashbaugh Date: Sun, 29 Aug 2021 21:27:01 -0600 Subject: [PATCH 1/2] Add className prop to SplitProps type --- packages/react-split/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-split/index.d.ts b/packages/react-split/index.d.ts index 9cb38a8b..0c067a62 100644 --- a/packages/react-split/index.d.ts +++ b/packages/react-split/index.d.ts @@ -19,6 +19,7 @@ export interface SplitProps { onDragStart?: Options["onDragStart"] onDragEnd?: Options["onDragEnd"] collapsed?: Number + className?: string } declare class Split extends React.Component {} From e18c3a07dc607725c708b2c476dff52f9b515142 Mon Sep 17 00:00:00 2001 From: Benjamin Ashbaugh Date: Sun, 5 Sep 2021 17:02:16 -0600 Subject: [PATCH 2/2] fix: extend HTMLAttributes --- packages/react-split/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-split/index.d.ts b/packages/react-split/index.d.ts index 0c067a62..a9251ef6 100644 --- a/packages/react-split/index.d.ts +++ b/packages/react-split/index.d.ts @@ -1,7 +1,7 @@ import React from 'react' import { Options } from 'split.js' -export interface SplitProps { +export interface SplitProps extends React.HTMLAttributes { sizes?: Options["sizes"] minSize?: Options["minSize"] maxSize?: Options["maxSize"] @@ -19,7 +19,6 @@ export interface SplitProps { onDragStart?: Options["onDragStart"] onDragEnd?: Options["onDragEnd"] collapsed?: Number - className?: string } declare class Split extends React.Component {}