Skip to content

Commit e8d8027

Browse files
fix(@clayui/button): fix error when using private name when generating declaration files
Relevant link: * microsoft/TypeScript#6307 (comment)
1 parent 7c28270 commit e8d8027

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/clay-autocomplete/src/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ClayDropDown from '@clayui/drop-down';
88
import fuzzy from 'fuzzy';
99
import React from 'react';
1010

11-
interface IProps extends React.ComponentProps<typeof ClayDropDown.Item> {
11+
export interface IProps extends React.ComponentProps<typeof ClayDropDown.Item> {
1212
innerRef?: React.Ref<HTMLAnchorElement>;
1313

1414
/**

packages/clay-button/src/Group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import classNames from 'classnames';
88
import React from 'react';
99

10-
interface IButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
10+
export interface IButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
1111
/**
1212
* Flag to indicate the spacing between the buttons.
1313
*/

packages/clay-drop-down/src/DropDownWithItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface IDropDownContentProps {
4545
items: Array<IItem>;
4646
}
4747

48-
interface IProps extends IDropDownContentProps {
48+
export interface IProps extends IDropDownContentProps {
4949
/**
5050
* Default position of menu element. Values come from `metal-position`.
5151
*/

packages/clay-pagination/src/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import classNames from 'classnames';
88
import React from 'react';
99

10-
interface IPaginationItemProps
10+
export interface IPaginationItemProps
1111
extends React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement> {
1212
active?: boolean;
1313
disabled?: boolean;

0 commit comments

Comments
 (0)