ngx-highlightjs
Version:
Instant code highlighting, auto-detect language, super easy to use.
27 lines (26 loc) • 828 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Gist, GistOptions } from './gist.model';
import * as i0 from "@angular/core";
export declare class CodeLoader {
private _http;
private _options;
constructor(_http: HttpClient, _options: GistOptions);
/**
* Get plus code
* @param id Gist ID
*/
getCodeFromGist(id: string): Observable<Gist>;
/**
* Get code by URL
* @param url File raw link
*/
getCodeFromUrl(url: string): Observable<string>;
/**
* Check if OAuth option is provided
*/
private isOAuthProvided;
private fetchFile;
static ɵfac: i0.ɵɵFactoryDeclaration<CodeLoader, [null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<CodeLoader>;
}