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:
Peter Bacon Darwin 2017-03-05 19:58:55 +00:00 committed by Igor Minar
parent b81693b30c
commit 3529813ca0
4 changed files with 15 additions and 12 deletions

View File

@ -0,0 +1,4 @@
export interface DocumentContents {
title: string;
contents: string;
}

View File

@ -7,14 +7,11 @@ import 'rxjs/add/operator/switchMap';
import { LocationService } from 'app/shared/location.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';
export interface DocumentContents {
title: string;
contents: string;
}
@Injectable()
export class DocumentService {

View File

@ -0,0 +1,7 @@
export interface NavigationNode {
url?: string;
title?: string;
tooltip?: string;
target?: string;
children?: NavigationNode[];
}

View File

@ -7,13 +7,8 @@ import 'rxjs/add/operator/publish';
import { Logger } from 'app/shared/logger.service';
import { LocationService } from 'app/shared/location.service';
export interface NavigationNode {
url?: string;
title?: string;
tooltip?: string;
target?: string;
children?: NavigationNode[];
}
import { NavigationNode } from './navigation-node';
export { NavigationNode } from './navigation-node';
export interface NavigationViews {
[name: string]: NavigationNode[];