UNPKG

ngx-avatars

Version:

A universal avatar component for Angular applications that fetches / generates avatar based on the information you have about the user.

23 lines (22 loc) 591 B
import { AsyncSource } from './async-source'; import { AvatarSource } from './avatar-source.enum'; /** * Google source implementation. * Fetch avatar source based on google identifier * and image size */ export declare class Google extends AsyncSource { readonly sourceType: AvatarSource; constructor(sourceId: string); getAvatar(): string; /** * Extract google avatar from json data */ processResponse(data: { entry: { gphoto$thumbnail: { $t: string; }; }; }, size?: number): string | null; }