Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 | 5x 40x 5x 84x 8x 8x | import type * as crud from '../crud/types'; export const newFile404Error = (collection: crud.CrudCollection, id: string) => new DOMException(`Resource "${id}" in /${collection.join('/')} not found`, 'ResourceNotFound'); export const newFolder404Error = (collection: crud.CrudCollection) => new DOMException(`Collection /${collection.join('/')} does not exist`, 'CollectionNotFound'); export const newExistsError = () => new DOMException('Resource already exists', 'Exists'); export const newMissingError = () => new DOMException('Resource is missing', 'Missing'); |