UNPKG

@damourlabs/euro-clinical-trials

Version:

A Nuxt 3 application for visualizing and managing clinical trials data in Europe, built with modern web technologies.

10 lines (9 loc) 367 B
// ~/repositories/RepositoryFactory.ts import type { Entity } from './BaseRepository' import { ResourceRepository, type REPOSITORY_TYPE } from './ResourceRepository' export function createResourceRepository<T extends Entity>( resource: string, type: REPOSITORY_TYPE = 'cached' ): ResourceRepository<T> { return new ResourceRepository<T>(resource, type) }