mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
Adjust types
This commit is contained in:
@@ -18,7 +18,7 @@ import { IconNode } from '../types';
|
||||
* @returns {IconNode}
|
||||
* ${deprecated ? `@deprecated ${deprecationReason}` : ''}
|
||||
*/
|
||||
const _${exportName}: string = ${JSON.stringify(children)}
|
||||
const _${exportName}: IconNode = ${JSON.stringify(children)}
|
||||
|
||||
export default _${exportName};
|
||||
`;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// className is not supported in svg elements
|
||||
export type SVGProps = Record<string, string | number>;
|
||||
export type IconNodeChild = readonly [tag: string, attrs: SVGProps];
|
||||
export type IconNode = readonly [tag: string, attrs: SVGProps, children?: IconNodeChild[]];
|
||||
export type IconNode = readonly [tag: string, attrs: SVGProps][];
|
||||
export type Icons = { [key: string]: IconNode };
|
||||
|
||||
Reference in New Issue
Block a user