mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
15 lines
421 B
TypeScript
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>;
|
|
}
|