diff --git a/src/index.tsx b/src/index.tsx index d8c161d..53c1345 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,2 +1,2 @@ export * from "./lib/shapes"; -export { default as shapes, shapeTypes } from "./shapes"; +export { default as shapes, shapeTypes, getRandomShape } from "./shapes"; diff --git a/src/lib/iconBase.tsx b/src/lib/iconBase.tsx index 5002b48..7446d3c 100644 --- a/src/lib/iconBase.tsx +++ b/src/lib/iconBase.tsx @@ -7,9 +7,8 @@ import React, { import NoiseMask from "./noiseMask"; // icon base props -export interface ShapeProps - extends RefAttributes, - Partial> { +type svgProps = RefAttributes & Partial>; +export interface ShapeProps extends svgProps{ size?: number; noise?: boolean; }