@funded-labs/plug-controller
Version:
Internet Computer Plug wallet's controller
14 lines (13 loc) • 612 B
TypeScript
import { PlugStateStorage } from '../../interfaces/plug_keyring';
import { NetworkModuleParams } from '../../PlugKeyRing/modules/NetworkModule';
export declare const isEmpty: (obj: any) => boolean;
/**
* Returns an Error if extension.runtime.lastError is present
* this is a workaround for the non-standard error object that's used
* @returns {Error|undefined}
*/
export declare const checkForError: () => Error | undefined;
export declare const handleStorageUpdate: (storageVersion: string | undefined, storage: any) => PlugStateStorage & {
mnemonic: string;
networkModule?: NetworkModuleParams;
};