X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b58e3122a2574d81618bca58e27b046f82400f49..5941908e7a1d369ca823702f60e8fd048ae08a9a:/src/services/collection-files-service/collection-manifest-parser.ts?ds=sidebyside diff --git a/src/services/collection-files-service/collection-manifest-parser.ts b/src/services/collection-files-service/collection-manifest-parser.ts index bed26783..d564f33e 100644 --- a/src/services/collection-files-service/collection-manifest-parser.ts +++ b/src/services/collection-files-service/collection-manifest-parser.ts @@ -2,12 +2,12 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { KeepManifestStream, KeepManifestStreamFile, KeepManifest } from "../../models/keep-manifest"; +import { KeepManifestStream, KeepManifestStreamFile, KeepManifest } from "~/models/keep-manifest"; /** * Documentation [http://doc.arvados.org/api/storage.html](http://doc.arvados.org/api/storage.html) */ -export const parseKeepManifestText = (text: string) => +export const parseKeepManifestText: (text: string) => KeepManifestStream[] = (text: string) => text .split(/\n/) .filter(streamText => streamText.length > 0) @@ -52,4 +52,4 @@ const parseFile = (token: string): KeepManifestStreamFile => { }; const stringifyFile = (file: KeepManifestStreamFile) => - `${file.position}:${file.size}:${file.name}`; \ No newline at end of file + `${file.position}:${file.size}:${file.name}`;