UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

8 lines (7 loc) 423 B
import type { AbstractServiceOptions } from '@directus/types'; import { ItemsService } from '../services/index.js'; /** * Select the correct service for the given collection. This allows the individual services to run * their custom checks (f.e. it allows `UsersService` to prevent updating TFA secret from outside). */ export declare function getService(collection: string, opts: AbstractServiceOptions): ItemsService;