ionic-coreo
Version:
Ionic2 module for integration with Coreo
25 lines (24 loc) • 594 B
TypeScript
/// <reference types="promise.prototype.finally" />
import { Storage } from '@ionic/storage';
export declare class CoreoUser {
private storage;
id: number;
email: string;
role: string;
displayName: string;
imageUrl: string;
isLoggedIn: boolean;
constructor(storage: Storage);
setProfile(data: any): void;
load(): Promise<CoreoUser>;
save(): Promise<any>;
clear(): void;
toJSON(): {} & {
id: number;
email: string;
displayName: string;
role: string;
imageUrl: string;
};
}
export default CoreoUser;