Update packages/lucide/scripts/buildTypes.js
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import defaultAttributes from '../src/defaultAttributes';
|
||||
const typeDefinitions = `\
|
||||
export interface SVGProps extends Partial<SVGElement> ${JSON.stringify(defaultAttributes, null, 2)}
|
||||
|
||||
export declare type IconNode = readonly [string, object];
|
||||
export declare type IconNode = readonly [tag: string, attrs:SVGProps, children?:IconNode];
|
||||
export declare type IconData = readonly [tag: string, object: object, children: IconNode[]];
|
||||
export type Icons = { [key: string]: IconData }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user