mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Update KeyValueStorage interface with entries function
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { BasicRepresentation } from '../../ldp/representation/BasicRepresentation';
|
||||
import type { ResourceIdentifier } from '../../ldp/representation/ResourceIdentifier';
|
||||
import { NotFoundHttpError } from '../../util/errors/NotFoundHttpError';
|
||||
import { NotImplementedHttpError } from '../../util/errors/NotImplementedHttpError';
|
||||
import { readableToString } from '../../util/StreamUtil';
|
||||
import type { ResourceStore } from '../ResourceStore';
|
||||
import type { KeyValueStorage } from './KeyValueStorage';
|
||||
@@ -61,4 +62,9 @@ export class JsonResourceStorage implements KeyValueStorage<ResourceIdentifier,
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public entries(): never {
|
||||
// We don't know which resources are in the store
|
||||
throw new NotImplementedHttpError();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user