mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
refactor(types): use EditorLanguage from Prisma instead of defining locally
This commit is contained in:
parent
8c159e2717
commit
58bf991afd
@ -1,10 +1,7 @@
|
|||||||
export enum EditorLanguage {
|
import { EditorLanguage } from "@prisma/client";
|
||||||
C = "c",
|
|
||||||
CPP = "cpp",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EditorLanguageMetadata = {
|
export type EditorLanguageMetadata = {
|
||||||
id: EditorLanguage;
|
id: EditorLanguage,
|
||||||
label: string;
|
label: string;
|
||||||
fileName: string;
|
fileName: string;
|
||||||
fileExtension: string;
|
fileExtension: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user