mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore(deps): update all dependencies (#293)
This commit is contained in:
@@ -20,7 +20,7 @@ import { toNamedNode } from '../../../src/util/UriUtil';
|
||||
import { ensureTrailingSlash } from '../../../src/util/Util';
|
||||
|
||||
class SimpleDataAccessor implements DataAccessor {
|
||||
public readonly data: { [path: string]: Representation} = {};
|
||||
public readonly data: Record<string, Representation> = {};
|
||||
|
||||
private checkExists(identifier: ResourceIdentifier): void {
|
||||
if (!this.data[identifier.path]) {
|
||||
|
||||
@@ -10,7 +10,7 @@ describe('An ExtensionBasedMapper', (): void => {
|
||||
const base = 'http://test.com/';
|
||||
const rootFilepath = 'uploads/';
|
||||
const mapper = new ExtensionBasedMapper(base, rootFilepath);
|
||||
let fsPromises: { [ id: string ]: jest.Mock };
|
||||
let fsPromises: Record<string, jest.Mock>;
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
jest.clearAllMocks();
|
||||
|
||||
@@ -8,20 +8,20 @@ import { TypedRepresentationConverter } from '../../../../src/storage/conversion
|
||||
import { CONTENT_TYPE } from '../../../../src/util/UriConstants';
|
||||
|
||||
class DummyConverter extends TypedRepresentationConverter {
|
||||
private readonly inTypes: { [contentType: string]: number };
|
||||
private readonly outTypes: { [contentType: string]: number };
|
||||
private readonly inTypes: Record<string, number>;
|
||||
private readonly outTypes: Record<string, number>;
|
||||
|
||||
public constructor(inTypes: { [contentType: string]: number }, outTypes: { [contentType: string]: number }) {
|
||||
public constructor(inTypes: Record<string, number>, outTypes: Record<string, number>) {
|
||||
super();
|
||||
this.inTypes = inTypes;
|
||||
this.outTypes = outTypes;
|
||||
}
|
||||
|
||||
public async getInputTypes(): Promise<{ [contentType: string]: number }> {
|
||||
public async getInputTypes(): Promise<Record<string, number>> {
|
||||
return this.inTypes;
|
||||
}
|
||||
|
||||
public async getOutputTypes(): Promise<{ [contentType: string]: number }> {
|
||||
public async getOutputTypes(): Promise<Record<string, number>> {
|
||||
return this.outTypes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user