Skip to content

Commit 7f37d36

Browse files
committed
chore: updating lingering base types of icon subcomponents
1 parent 3a4b28e commit 7f37d36

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/forms/src/types/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
HTMLAttributes,
1111
InputHTMLAttributes,
1212
LabelHTMLAttributes,
13+
ReactElement,
1314
SelectHTMLAttributes,
1415
SVGAttributes,
1516
TextareaHTMLAttributes
@@ -85,9 +86,9 @@ export interface IInputProps extends IRadioProps {
8586

8687
export interface IMediaInputProps extends IInputProps {
8788
/** Accepts a "start" icon to display */
88-
start?: any;
89+
start?: ReactElement;
8990
/** Accepts an "end" icon to display */
90-
end?: any;
91+
end?: ReactElement;
9192
/** Applies props to the wrapping [FauxInput](#fauxinput) element */
9293
wrapperProps?: any;
9394
/** Applies a ref to the wrapping [FauxInput](#fauxinput) element */

packages/loaders/src/types/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const SIZE = ['small', 'medium', 'large'] as const;
1111

1212
export type Size = (typeof SIZE)[number];
1313

14-
export interface IDotsProps extends SVGAttributes<SVGSVGElement> {
14+
export interface IDotsProps extends SVGAttributes<SVGElement> {
1515
/** Sets the height and width in pixels. Inherits the parent's font size by default. */
1616
size?: string | number;
1717
/** Sets the fill color. Inherits the parent's `color` by default. */
@@ -22,7 +22,7 @@ export interface IDotsProps extends SVGAttributes<SVGSVGElement> {
2222
delayMS?: number;
2323
}
2424

25-
export interface IInlineProps extends SVGAttributes<SVGSVGElement> {
25+
export interface IInlineProps extends SVGAttributes<SVGElement> {
2626
/** Sets the width in pixels and scales the loader proportionally */
2727
size?: number;
2828
/** Sets the fill color. Inherits the parent's `color` by default. */
@@ -50,7 +50,7 @@ export interface ISkeletonProps extends HTMLAttributes<HTMLDivElement> {
5050
isLight?: boolean;
5151
}
5252

53-
export interface ISpinnerProps extends SVGAttributes<SVGSVGElement> {
53+
export interface ISpinnerProps extends SVGAttributes<SVGElement> {
5454
/**
5555
* Sets the height and width in pixels. Inherits the parent's font size by default.
5656
**/

0 commit comments

Comments
 (0)