ngx-highlightjs
Version:
Instant code highlighting, auto-detect language, super easy to use.
11 lines (10 loc) • 418 B
TypeScript
import { InjectionToken } from '@angular/core';
/**
* Injection token used to provide the current location to `codeFromUrl` pipe.
* Used to handle server-side rendering and to stub out during unit tests.
*/
export declare const HIGHLIGHT_FILE_LOCATION: InjectionToken<any>;
export interface CodeFileLocation {
getPathname: () => string;
}
export declare function CODE_FILE_LOCATION_FACTORY(): CodeFileLocation;