From 6a036caecc7f90a21763b7bbad897c180924b6f2 Mon Sep 17 00:00:00 2001 From: orifu Date: Wed, 25 Sep 2024 06:23:21 +0100 Subject: [PATCH] [no ci] mdx type issue fixes --- src/ts/modrinth.ts | 23 ++++++++++++++++------- tsconfig.json | 3 +++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/ts/modrinth.ts b/src/ts/modrinth.ts index 6a96aa9..680dc35 100644 --- a/src/ts/modrinth.ts +++ b/src/ts/modrinth.ts @@ -99,14 +99,23 @@ export async function getOrgProjects(id: string): Promise { export const projects = await getOrgProjects('rosebud'); +export type RosebudModId = + | 'rainglow' + | 'berries' + | 'ramel' + | 'skinOverrides' + | 'styledRenaming' + | 'shutUpRealms'; + export const mods = Object.fromEntries( projects.map((proj) => [kebabToCamel(proj.slug), proj]), -); +) as Record; + export const modsList = [ - mods.rainglow!, - mods.berries!, - mods.ramel!, - mods.skinOverrides!, - mods.styledRenaming!, - mods.shutUpRealms!, + mods.rainglow, + mods.berries, + mods.ramel, + mods.skinOverrides, + mods.styledRenaming, + mods.shutUpRealms, ]; diff --git a/tsconfig.json b/tsconfig.json index 934f1d2..184dbc8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,5 +6,8 @@ "@components/*": ["src/components/*"], "@ts/*": ["src/ts/*"] } + }, + "mdx": { + "checkMdx": true } }