diff --git a/packages/lucide/scripts/buildTypes.js b/packages/lucide/scripts/buildTypes.js index 8d8926a..518ee37 100644 --- a/packages/lucide/scripts/buildTypes.js +++ b/packages/lucide/scripts/buildTypes.js @@ -8,16 +8,7 @@ const TYPES_FILE_NAME = 'lucide.d.ts'; import defaultAttributes from '../src/defaultAttributes'; // Generates header of d.ts file include some types and functions const typeDefinitions = `\ -export interface Attributes { - width?: number; - height?: number; - viewBox?: string; - fill?: string; - stroke?: string; - 'stroke-width'?: number; - 'stroke-linecap'?: string; - 'stroke-linejoin'?: string; -} +export interface SVGProps extends Partial ${JSON.stringify(defaultAttributes, null, 2)} export declare type IconNode = readonly [string, object]; export declare type IconData = readonly [tag: string, object: object, children: IconNode[]];