/**
 * This is an example of Shikiji running on Edge
 *
 * Available query parameters:
 *   - code: code to highlight, default to the example
 *   - lang: language to highlight, default to "ts"
 *   - theme: theme to use, default to "vitesse-dark"
 *   - twoslash: enable twoslash, default to false, only works for TypeScript
 *   - style: inject CSS style, default to true
 * 
 * Source repo: https://github.com/antfu/nitro-shikiji
 */
Hover on tokens to see the types
import { ref(alias) function ref<T>(value: T): [T] extends [Ref] ? IfAny<T, Ref<T>, T> : Ref<UnwrapRef<T>, UnwrapRef<T> | T> (+1 overload) import ref, computed(alias) function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T> (+1 overload) import computed } from '@vue/reactivity' consolevar console: Console.log(method) Console.log(...data: any[]): void("Hello World!") const valueconst value: Ref<number, number> = ref(alias) ref<number>(value: number): Ref<number, number> (+1 overload) import ref(1) const double
const double: ComputedRef<number>
= computed(alias) computed<number>(getter: ComputedGetter<number>, debugOptions?: DebuggerOptions | undefined): ComputedRef<number> (+1 overload) import computed(() => valueconst value: Ref<number, number>.value(property) Ref<number, number>.value: number * 2)
doubleconst double: ComputedRef<number>.value = 5
Cannot assign to 'value' because it is a read-only property.