Update packages/lucide/scripts/buildTypes.js
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
@@ -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[]];
|
||||||
|
|||||||
Reference in New Issue
Block a user