15672: Fixes filter usage on workflow service.
[arvados-workbench2.git] / src / services / collection-files-service / collection-manifest-parser.ts
index bed26783ef741f0ddcc1106ee313b770ffcf3354..d564f33ec03a13634d11fb84052ef3e814ea6ba7 100644 (file)
@@ -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}`;