Skip to content

Instantly share code, notes, and snippets.

@nikolovlazar
nikolovlazar / serviceLocator.ts
Last active July 2, 2024 22:55
An updated ServiceLocator that matches types in the `getService` method
import { CollectionsRepository } from '../repositories/collectionsRepository'
import { AuthenticationService } from './authenticationService'
import { CollectionsService } from './collectionsService'
interface ServiceMap {
AuthenticationService: AuthenticationService
CollectionsService: CollectionsService
}