Joachim Van Herwegen 4404fa07d9 refactor: Rename resourceExists to hasResource
The function was also moved to the smaller interface ResourceSet.
2022-03-18 14:15:12 +01:00

15 lines
421 B
TypeScript

import type { ResourceIdentifier } from '../http/representation/ResourceIdentifier';
/**
* A set containing resources.
*/
export interface ResourceSet {
/**
* Check if a resource exists in this ResourceSet.
* @param identifier - Identifier of resource to check.
*
* @returns A promise resolving if the resource already exists.
*/
hasResource: (identifier: ResourceIdentifier) => Promise<boolean>;
}