UNPKG

ngx-avatars

Version:

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

18 lines (17 loc) 490 B
import { AsyncSource } from './async-source'; import { AvatarSource } from './avatar-source.enum'; /** * GitHub source implementation. * Fetch avatar source based on github identifier */ export declare class Github extends AsyncSource { readonly sourceType: AvatarSource; constructor(sourceId: string); getAvatar(): string; /** * extract github avatar from json data */ processResponse(data: { avatar_url: string; }, size?: number): string; }