Skip to content

Commit 97168cb

Browse files
authored
Merge pull request #9 from TedDriggs/typescript-types
Tighten the className property on custom renderer props in TS declaration
2 parents 8c4726e + e19f2f4 commit 97168cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { Component, CSSProperties, SFC } from "react";
22

3+
/**
4+
* Props passed to custom renderers by `Scrollbar`.
5+
*/
36
export interface ScrollbarRendererProps {
4-
className?: string | string[];
7+
className: string;
58
style?: CSSProperties;
69
}
710

0 commit comments

Comments
 (0)