Skip to content

Commit

Permalink
fix(types): Add missing innerRef typings (reactstrap#1994)
Browse files Browse the repository at this point in the history
Add missing innerRef typings for Fade, Modal and Table.

Closes reactstrap#1993
  • Loading branch information
koenvg committed Oct 26, 2020
1 parent 2a47626 commit fe24f69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/lib/Fade.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface FadeProps extends React.HTMLAttributes<HTMLElement> {
transitionLeave?: boolean;
onLeave?: () => void;
onEnter?: () => void;
innerRef?: React.Ref<HTMLElement>;
}

declare class Fade extends React.Component<FadeProps> {}
Expand Down
1 change: 1 addition & 0 deletions types/lib/Modal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface ModalProps extends React.HTMLAttributes<HTMLElement> {
unmountOnClose?: boolean;
returnFocusAfterClose?: boolean;
container?: string | HTMLElement | React.RefObject<HTMLElement>;
innerRef?: React.Ref<HTMLElement>;
}

declare class Modal extends React.Component<ModalProps> {}
Expand Down
1 change: 1 addition & 0 deletions types/lib/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface TableProps
responsive?: boolean | string;
tag?: React.ElementType;
responsiveTag?: React.ElementType;
innerRef?: React.Ref<HTMLTableElement>;
}

declare class Table extends React.Component<TableProps> {}
Expand Down

0 comments on commit fe24f69

Please sign in to comment.