UNPKG

@directus/api

Version:

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

7 lines (6 loc) 290 B
import type { DirectusError } from '@directus/errors'; import { GraphQLError } from 'graphql'; /** * Convert Directus-Exception into a GraphQL format, so it can be returned by GraphQL properly. */ export declare function formatError(error: DirectusError | DirectusError[]): GraphQLError;