Update packages/lucide/scripts/buildTypes.js

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
SMAH1
2021-04-03 10:59:36 +04:30
committed by GitHub
parent c40df12e05
commit 7e676e35e4

View File

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