chore(deps): update all dependencies (#293)

This commit is contained in:
Ruben Verborgh
2020-11-02 09:08:14 +01:00
committed by GitHub
parent 73a56d8682
commit 0476ba8069
15 changed files with 1407 additions and 2617 deletions

View File

@@ -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]) {

View File

@@ -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();

View File

@@ -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;
}