@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
13 lines (12 loc) • 700 B
TypeScript
import type { AbstractServiceOptions, Comment, MutationOptions, PrimaryKey } from '@directus/types';
import { ItemsService } from './items.js';
import { NotificationsService } from './notifications.js';
import { UsersService } from './users.js';
export declare class CommentsService extends ItemsService {
notificationsService: NotificationsService;
usersService: UsersService;
constructor(options: AbstractServiceOptions);
createOne(data: Partial<Comment>, opts?: MutationOptions): Promise<PrimaryKey>;
updateOne(key: PrimaryKey, data: Partial<Comment>, opts?: MutationOptions): Promise<PrimaryKey>;
deleteOne(key: PrimaryKey, opts?: MutationOptions): Promise<PrimaryKey>;
}