UNPKG

changelog-guru

Version:
22 lines (21 loc) 612 B
import Entity, { IEntity, Priority } from './Entity.js'; export interface IAuthor extends IEntity { readonly avatar: string; readonly login: string; readonly url: string; contribute(value?: number): void; } export interface IAuthorOptions { avatar: string; login: string; url: string; } export default class Author extends Entity implements IAuthor { #private; readonly avatar: string; readonly login: string; readonly url: string; constructor({ login, url, avatar }: IAuthorOptions); get priority(): Priority | number; contribute(value?: number): void; }