UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

9 lines (8 loc) 382 B
import { fieldAffectsData } from '../fields/config/types.js'; import { APIError } from './APIError.js'; export class MissingFieldType extends APIError { constructor(field){ super(`Field${fieldAffectsData(field) ? ` "${field.name}"` : ''} is either missing a field type or it does not match an available field type`); } } //# sourceMappingURL=MissingFieldType.js.map