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 {
C = "c",
CPP = "cpp",
}
import { EditorLanguage } from "@prisma/client";
export type EditorLanguageMetadata = {
id: EditorLanguage;
id: EditorLanguage,
label: string;
fileName: string;
fileExtension: string;