fix: resolve cli-highlight types and runtime info

This commit is contained in:
Peter Steinberger
2026-01-19 05:57:29 +00:00
parent 5ee03c82b4
commit d126e7f610
2 changed files with 16 additions and 2 deletions

10
src/types/cli-highlight.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
declare module "cli-highlight" {
export type HighlightOptions = {
language?: string;
theme?: unknown;
ignoreIllegals?: boolean;
};
export function highlight(code: string, options?: HighlightOptions): string;
export function supportsLanguage(language: string): boolean;
}