From 7e676e35e47facc81f14b4130a58dcfbd0ed4da6 Mon Sep 17 00:00:00 2001 From: SMAH1 Date: Sat, 3 Apr 2021 10:59:36 +0430 Subject: [PATCH] Update packages/lucide/scripts/buildTypes.js Co-authored-by: Eric Fennis --- packages/lucide/scripts/buildTypes.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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[]];