mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-15 21:37:43 +01:00
* Adjust typescript types * adjust types * fix types in all helper files * Fix types * Migrate js files to ts files * Refactor to TS files * Rename extentions * Adjust imports * Fix builds * Update lockfile * Fix last typescript migration * Fix entry path @lucide/outline-svg * Fix types * add checkout step * format files * Format files
16 lines
499 B
TypeScript
16 lines
499 B
TypeScript
const getExportString = (
|
|
componentName: string,
|
|
iconName: string,
|
|
aliasImportFileExtension: string,
|
|
deprecated?: boolean,
|
|
deprecationReason = '',
|
|
) =>
|
|
deprecated
|
|
? `export {\n` +
|
|
` /** @deprecated ${deprecationReason} */\n` +
|
|
` default as ${componentName}\n` +
|
|
`} from '../icons/${iconName}${aliasImportFileExtension}';\n`
|
|
: `export { default as ${componentName} } from '../icons/${iconName}${aliasImportFileExtension}';\n`;
|
|
|
|
export default getExportString;
|