pygments_data: Move data to typescript.

This commit is contained in:
evykassirer
2024-01-13 12:01:07 -08:00
committed by Tim Abbott
parent bd6471f0e3
commit d7b02a699c
9 changed files with 24 additions and 15 deletions

6
web/src/pygments_data.ts Normal file
View File

@@ -0,0 +1,6 @@
import generated_pygments_data from "../generated/pygments_data.json";
type PygmentsLanguage = {priority: number; pretty_name: string};
const langs: Record<string, PygmentsLanguage | undefined> = generated_pygments_data.langs;
export {langs};