Skip to content

Commit

Permalink
fix(batch-selection): ts type definitions not properly exported
Browse files Browse the repository at this point in the history
add missing index.d.ts file
add missing "hidden" type definition
fix incorrect "colorTheme" types
sort ts type definitions
  • Loading branch information
grabkowski committed May 11, 2021
1 parent b3cdc6e commit 7b59608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import * as React from "react";

export interface BatchSelectionProps {
/** Color of the background, transparent if not defined */
colorTheme?: "dark" | "light" | "transparent-base" | "transparent-white";
/** Content to be rendered after selected count */
children: React.ReactNode;
/** Color of the background, transparent if not defined */
colorTheme?: "dark" | "light" | "white" | "transparent";
/** If true disables all user interaction */
disabled?: boolean;
/** Hidden if true */
hidden?: boolean;
/** Number of selected elements */
selectedCount: number;
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/batch-selection/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export { default } from "./batch-selection";

0 comments on commit 7b59608

Please sign in to comment.