Add multiple files uploading
[arvados-workbench2.git] / src / services / collection-files-service / collection-manifest-parser.ts
index bed26783ef741f0ddcc1106ee313b770ffcf3354..b0fc55a49ba0ec48017c26383272a82914a72b10 100644 (file)
@@ -7,7 +7,7 @@ import { KeepManifestStream, KeepManifestStreamFile, KeepManifest } from "../../
 /**
  * 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}`;