refactor(types): use EditorLanguage from Prisma instead of defining locally

This commit is contained in:
cfngc4594 2025-03-08 20:43:01 +08:00
parent 8c159e2717
commit 58bf991afd

View File

@ -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;