@intlayer/chokidar
Version:
Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.
12 lines • 495 B
TypeScript
//#region src/writeContentDeclaration/detectExportedComponentName.d.ts
/**
* Attempt to detect an exported React component name in the file text.
* Looks for patterns like:
* - export const MyComponent = ...
* - export function MyComponent(...)
* - export default function MyComponent(...)
*/
declare const detectExportedComponentName: (fileText: string) => string | null;
//#endregion
export { detectExportedComponentName };
//# sourceMappingURL=detectExportedComponentName.d.ts.map