This commit is contained in:
2024-01-22 12:30:30 +08:00
parent 230cf1bdeb
commit 275f49e54e
3 changed files with 66 additions and 11 deletions

View File

@@ -1,6 +1,14 @@
import { RemovableRef } from "@vueuse/core"
export type LANGUAGE = "c" | "cpp" | "python" | "java"
export interface Code {
value: string
language: LANGUAGE
}
export interface Cache {
language: RemovableRef<LANGUAGE>
input: RemovableRef<string>
code: { [key in LANGUAGE]: RemovableRef<string> }
}