fix(aio): move interfaces into their own files to workaround compile weirdness
For some reason the tree-shaker is not picking up these interfaces (perhaps TS is not passing it through) when they are in the same file as their related services. This results in a distracting warning message.
This commit is contained in:
parent
b81693b30c
commit
3529813ca0
|
@ -0,0 +1,4 @@
|
||||||
|
export interface DocumentContents {
|
||||||
|
title: string;
|
||||||
|
contents: string;
|
||||||
|
}
|
|
@ -7,14 +7,11 @@ import 'rxjs/add/operator/switchMap';
|
||||||
|
|
||||||
import { LocationService } from 'app/shared/location.service';
|
import { LocationService } from 'app/shared/location.service';
|
||||||
import { Logger } from 'app/shared/logger.service';
|
import { Logger } from 'app/shared/logger.service';
|
||||||
|
import { DocumentContents } from './document-contents';
|
||||||
|
export { DocumentContents } from './document-contents';
|
||||||
|
|
||||||
const FILE_NOT_FOUND_URL = 'file-not-found';
|
const FILE_NOT_FOUND_URL = 'file-not-found';
|
||||||
|
|
||||||
export interface DocumentContents {
|
|
||||||
title: string;
|
|
||||||
contents: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DocumentService {
|
export class DocumentService {
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
export interface NavigationNode {
|
||||||
|
url?: string;
|
||||||
|
title?: string;
|
||||||
|
tooltip?: string;
|
||||||
|
target?: string;
|
||||||
|
children?: NavigationNode[];
|
||||||
|
}
|
|
@ -7,13 +7,8 @@ import 'rxjs/add/operator/publish';
|
||||||
import { Logger } from 'app/shared/logger.service';
|
import { Logger } from 'app/shared/logger.service';
|
||||||
import { LocationService } from 'app/shared/location.service';
|
import { LocationService } from 'app/shared/location.service';
|
||||||
|
|
||||||
export interface NavigationNode {
|
import { NavigationNode } from './navigation-node';
|
||||||
url?: string;
|
export { NavigationNode } from './navigation-node';
|
||||||
title?: string;
|
|
||||||
tooltip?: string;
|
|
||||||
target?: string;
|
|
||||||
children?: NavigationNode[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface NavigationViews {
|
export interface NavigationViews {
|
||||||
[name: string]: NavigationNode[];
|
[name: string]: NavigationNode[];
|
||||||
|
|
Loading…
Reference in New Issue