Skip to content

fix: lint error

fix: lint error #975

Triggered via push January 8, 2024 23:11
Status Failure
Total duration 1m 32s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: src/files/infrastructure/FileJSDataverseRepository.ts#L29
Property 'getAllByDatasetPersistentId' in type 'FileJSDataverseRepository' is not assignable to the same property in base type 'FileRepository'.
lint: src/files/infrastructure/FileJSDataverseRepository.ts#L36
Type 'Promise<import("/home/runner/work/dataverse-frontend/dataverse-frontend/src/files/domain/models/File").File[]>' is not assignable to type 'Promise<File[]>'.
lint: src/files/infrastructure/FileJSDataverseRepository.ts#L169
Cannot find name 'FileDownloadMode'. Did you mean 'FileDownloadSizeMode'?
lint: src/files/infrastructure/FileJSDataverseRepository.ts#L173
Cannot find name 'FileDownloadMode'. Did you mean 'FileDownloadSizeMode'?
lint: src/files/infrastructure/FileJSDataverseRepository.ts#L174
Cannot find name 'FileDownloadMode'. Did you mean 'downloadMode'?
lint: src/sections/dataset/DatasetFactory.tsx#L26
Type 'FileJSDataverseRepository' is not assignable to type 'FileRepository'.
lint: src/sections/dataset/DatasetFactory.tsx#L27
Type 'FileJSDataverseRepository' is not assignable to type 'FileRepository'.
lint: src/sections/dataset/DatasetFactory.tsx#L61
Type 'FileJSDataverseRepository' is not assignable to type 'FileRepository'.
lint: src/sections/dataset/DatasetFactory.tsx#L70
Type 'FileJSDataverseRepository' is not assignable to type 'FileRepository'.
lint
Process completed with exit code 2.