fix: resolve cli-highlight types and runtime info
This commit is contained in:
1 parent
5ee03c82b4
commit
d126e7f610
2 files changed
+16
-2
No files matched your search
Vendored
+10
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user