ngx-highlightjs
Version:
Instant code highlighting, auto-detect language, super easy to use.
21 lines (20 loc) • 571 B
TypeScript
import { Observable } from 'rxjs';
import { Gist } from './gist.model';
import * as i0 from "@angular/core";
export declare class CodeLoader {
private _http;
private _options;
/**
* 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>;
private fetchFile;
static ɵfac: i0.ɵɵFactoryDeclaration<CodeLoader, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CodeLoader>;
}