mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-15 14:08:49 +00: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
15 lines
378 B
TypeScript
15 lines
378 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
import { toCamelCase } from './toCamelCase.ts';
|
|
|
|
/**
|
|
* Converts string to PascalCase
|
|
*
|
|
* @param {string} string
|
|
* @returns {string} A pascalized string
|
|
*/
|
|
export const toPascalCase = (string: string): string => {
|
|
const camelCase = toCamelCase(string);
|
|
|
|
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
};
|