I have a folder full of json schemas, written in typescript.
I'd like to be able to import them all and keep the typing without having 30 import statements.
I'm using these for validating json sent to my API with Ajv. I want my API mount points to be the same as the naming convention used for my schemas.
/users -> schemas/users.schema.ts
/account/stats -> schemas/account/stats.schema.ts
I have a string array of available mount points and would love to be able to do
API.Mount("account/stats")
so basically
import `/schemas/${mount}.schema.ts` <-- import all these guys