13 lines
405 B
TypeScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
import { type ComputedRef, type Ref } from 'vue';
import type { HLJSApi } from 'highlight.js';
interface UseHljsProps {
hljs?: unknown;
[key: string]: unknown;
}
export interface Hljs {
highlight: HLJSApi['highlight'];
getLanguage: HLJSApi['getLanguage'];
}
export default function useHljs(props: UseHljsProps, shouldHighlightRef?: Ref<boolean>): ComputedRef<Hljs | undefined>;
export {};