UNPKG

ngx-avatars

Version:

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

22 lines (21 loc) 583 B
import { AsyncSource } from './async-source'; import { AvatarSource } from './avatar-source.enum'; /** * Instagram source implementation. * Fetch avatar source based on instagram identifier */ export declare class Instagram extends AsyncSource { readonly sourceType: AvatarSource; constructor(sourceId: string); getAvatar(): string; /** * extract instagram avatar from json data */ processResponse(data: { graphql: { user: { profile_pic_url_hd: string; }; }; }, size?: number): string; }