UNPKG

@angular-material-extensions/link-preview

Version:
17 lines (16 loc) 552 B
import { EventEmitter, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Link } from 'ngx-linkifyjs'; import { LinkPreview } from '../..'; export declare class MatLinkPreviewService implements OnDestroy { private http; private _accessKey; private _apiURL; private _subscription; onLinkFound: EventEmitter<Array<Link>>; links: Link[]; constructor(http: HttpClient); ngOnDestroy(): void; fetchLink(url: string): Observable<LinkPreview>; }