import type { Class } from '@travetto/runtime'; import type { ModelStorageSupport, ModelType } from '@travetto/model'; export class ModelInstallUtil { static async run(provider: ModelStorageSupport, models: Class[]): Promise { if (!provider.upsertModel) { throw new Error(`${provider} does not support model installation`); } for (const cls of models) { console.log('Installing', { name: cls.Ⲑid }); await provider.upsertModel(cls); } } }