UNPKG

1.15 kBTypeScriptView Raw
1import { ActivatedRoute } from '@angular/router';
2import { OnInit } from '@angular/core';
3import { Compiler, ViewContainerRef } from '@angular/core';
4import { SingleChange } from './patch-definition';
5import { Observable } from 'rxjs';
6import { Http } from '@angular/http';
7export declare class DiffBoxCode {
8 private compiler;
9 private vcRef;
10 diffboxCode: string;
11 constructor(compiler: Compiler, vcRef: ViewContainerRef);
12 ngOnChanges(): void;
13}
14export declare class DiffBoxComponent implements OnInit {
15 private route;
16 private http;
17 step: string;
18 optionalFilename: string;
19 hideRemoved: boolean;
20 tutorialName: string;
21 htmlContainer: any;
22 private diffDetails;
23 private tutorialData;
24 private files;
25 private revision;
26 constructor(route: ActivatedRoute, http: Http);
27 ngOnInit(): void;
28 getFileModification(filename: any): SingleChange[];
29 getImproveLink(filename: any): Observable<{
30 url: string;
31 }>;
32 getFileContent(filename: any): string;
33 buildGitHubLink(filename: string): string;
34 getLineNumbers(filename: any): any;
35 getLines(filename: string): any;
36}