mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
# Conflicts: # packages/lucide-angular/package.json # packages/lucide-angular/scripts/exportTemplate.mts # pnpm-lock.yaml # tools/build-icons/building/generateExportsFile.ts # tools/build-icons/building/generateIconFiles.ts
19 lines
521 B
TypeScript
19 lines
521 B
TypeScript
import { type IconNode } from '../types.ts';
|
|
|
|
export interface ExportTemplate {
|
|
componentName: string;
|
|
iconName: string;
|
|
children: IconNode;
|
|
getSvg: () => Promise<string>;
|
|
deprecated: boolean;
|
|
deprecationReason: string;
|
|
aliases: Array<string | { name: string }>;
|
|
toPascalCase: (value: string) => string;
|
|
}
|
|
|
|
export type TemplateFunction = (params: ExportTemplate) => Promise<string>;
|
|
|
|
const defineExportTemplate = (exportFunction: TemplateFunction) => exportFunction;
|
|
|
|
export default defineExportTemplate;
|