From f591c86aba9a0a080856a6b9a763a8b5eaa4320f Mon Sep 17 00:00:00 2001 From: SMAH1 Date: Wed, 17 Nov 2021 22:48:12 +0330 Subject: [PATCH] Refactoring (#436) --- packages/lucide/scripts/buildTypes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/lucide/scripts/buildTypes.js b/packages/lucide/scripts/buildTypes.js index e1aa161fb..4b458f516 100644 --- a/packages/lucide/scripts/buildTypes.js +++ b/packages/lucide/scripts/buildTypes.js @@ -10,9 +10,11 @@ const TYPES_FILE_NAME = 'lucide.d.ts'; // Generates header of d.ts file include some types and functions const typeDefinitions = `\ declare module 'lucide' + export interface SVGProps extends Partial ${JSON.stringify(defaultAttributes, null, 2)} -export declare type IconNode = readonly [tag: string, attrs:SVGProps, children?:IconNode]; +export declare type IconNodeChild = readonly [string, object]; +export declare type IconNode = readonly [tag: string, attrs: SVGProps, children?: IconNodeChild[]]; export declare type CustomAttrs = { [attr:string]: any } export type Icons = { [key: string]: IconNode }