mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
import service adjustments
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { Importer } from '../importers/importer';
|
||||
export type ImportOptions = Array<{id: string, name: string}>;
|
||||
|
||||
export interface ImportOption {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
export abstract class ImportService {
|
||||
submit: (importer: Importer, fileContents: string) => Promise<Error>;
|
||||
getOptions: () => ImportOptions;
|
||||
importOptions: ImportOption[];
|
||||
import: (importer: Importer, fileContents: string) => Promise<any>;
|
||||
getImporter: (format: string) => Importer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user