1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

feature/cli-18-import (#8)

* feature/cli-18-import

* updates to jslib
This commit is contained in:
Brandon Davis
2018-08-06 09:37:56 -04:00
committed by Kyle Spearrin
parent 49d3f22704
commit a5476f12aa
4 changed files with 243 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
import { Importer } from '../importers/importer';
export type ImportOptions = Array<{id: string, name: string}>;
export abstract class ImportService {
submit: (importer: Importer, fileContents: string) => Promise<Error>;
getOptions: () => ImportOptions;
getImporter: (format: string) => Importer;
}