platform-codebase/@packages/@utils/vite-version-plugin/src/console-banner.d.ts
Lilith a92fd668ce 🔧 Add vite-version-plugin console-banner build artifacts
Built JS and type definitions for console banner utility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 09:04:09 -08:00

36 lines
871 B
TypeScript

/**
* Console banner for displaying app version in browser console
*
* Uses global constants injected by versionPlugin:
* - __APP_NAME__
* - __APP_VERSION__
* - __BUILD_TIME__
* - __GIT_COMMIT__
*
* @example
* ```ts
* // In your app's entry point (main.tsx or App.tsx)
* import { logVersionBanner } from '@lilith/vite-version-plugin/console';
*
* logVersionBanner();
* ```
*/
/**
* Logs a styled version banner to the browser console
*
* @param options Optional customization
*/
export declare function logVersionBanner(options?: {
primaryColor?: string;
secondaryColor?: string;
}): void;
/**
* Returns version info as an object (useful for debugging or display in UI)
*/
export declare function getVersionInfo(): {
appName: string;
version: string;
buildTime: string;
gitCommit: string;
};
export default logVersionBanner;