29 lines
464 B
TypeScript

import type { BuiltinTheme, ThemeRegistration } from 'shiki'
export type ThemeOptions =
| BuiltinTheme
| {
light: BuiltinTheme
dark: BuiltinTheme
}
export interface ReplOptions {
theme?: ThemeOptions
go?: boolean
kotlin?: boolean
rust?: boolean
}
export interface ReplEditorData {
grammars: {
go?: any
kotlin?: any
rust?: any
}
theme: ThemeRegistration | {
light: ThemeRegistration
dark: ThemeRegistration
}
}