Skip to content

Commit 6edd2c9

Browse files
committed
fix random function imports and the type
1 parent 38aedfe commit 6edd2c9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./lib/shapes";
2-
export { default as shapes, shapeTypes } from "./shapes";
2+
export { default as shapes, shapeTypes, getRandomShape } from "./shapes";

src/lib/iconBase.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import React, {
77
import NoiseMask from "./noiseMask";
88

99
// icon base props
10-
export interface ShapeProps
11-
extends RefAttributes<SVGSVGElement>,
12-
Partial<SVGProps<SVGSVGElement>> {
10+
type svgProps = RefAttributes<SVGSVGElement> & Partial<SVGProps<SVGSVGElement>>;
11+
export interface ShapeProps extends svgProps{
1312
size?: number;
1413
noise?: boolean;
1514
}

0 commit comments

Comments
 (0)