chore(tslint): update tslint to 4.x (#13603)
This commit is contained in:
parent
e5c4e5801f
commit
eed83443b8
|
@ -9,10 +9,10 @@
|
|||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export type ReflectorReader = typeof r._ReflectorReader;
|
||||
export var ReflectorReader: typeof r.ReflectorReader = r.ReflectorReader;
|
||||
export const ReflectorReader: typeof r.ReflectorReader = r.ReflectorReader;
|
||||
|
||||
export type ReflectionCapabilities = typeof r._ReflectionCapabilities;
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
|
||||
export type Console = typeof r._Console;
|
||||
export var Console: typeof r.Console = r.Console;
|
||||
export const Console: typeof r.Console = r.Console;
|
||||
|
|
|
@ -122,11 +122,9 @@ export class MockCompilerHost implements ts.CompilerHost {
|
|||
return ts.getDefaultLibFileName(options);
|
||||
}
|
||||
|
||||
writeFile: ts.WriteFileCallback = (fileName, text) => { this.context.writeFile(fileName, text); }
|
||||
writeFile: ts.WriteFileCallback = (fileName, text) => { this.context.writeFile(fileName, text); };
|
||||
|
||||
getCurrentDirectory(): string {
|
||||
return this.context.currentDirectory;
|
||||
}
|
||||
getCurrentDirectory(): string { return this.context.currentDirectory; }
|
||||
|
||||
getCanonicalFileName(fileName: string): string { return fileName; }
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export type ReflectionCapabilities = typeof r._ReflectionCapabilities;
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
|
|
|
@ -120,7 +120,7 @@ function newErrorToken(index: number, message: string): Token {
|
|||
return new Token(index, TokenType.Error, 0, message);
|
||||
}
|
||||
|
||||
export var EOF: Token = new Token(-1, TokenType.Character, 0, '');
|
||||
export const EOF: Token = new Token(-1, TokenType.Character, 0, '');
|
||||
|
||||
class _Scanner {
|
||||
length: number;
|
||||
|
|
|
@ -68,13 +68,13 @@ export class MapType extends Type {
|
|||
visitType(visitor: TypeVisitor, context: any): any { return visitor.visitMapType(this, context); }
|
||||
}
|
||||
|
||||
export var DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);
|
||||
export var BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);
|
||||
export var INT_TYPE = new BuiltinType(BuiltinTypeName.Int);
|
||||
export var NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);
|
||||
export var STRING_TYPE = new BuiltinType(BuiltinTypeName.String);
|
||||
export var FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);
|
||||
export var NULL_TYPE = new BuiltinType(BuiltinTypeName.Null);
|
||||
export const DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);
|
||||
export const BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);
|
||||
export const INT_TYPE = new BuiltinType(BuiltinTypeName.Int);
|
||||
export const NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);
|
||||
export const STRING_TYPE = new BuiltinType(BuiltinTypeName.String);
|
||||
export const FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);
|
||||
export const NULL_TYPE = new BuiltinType(BuiltinTypeName.Null);
|
||||
|
||||
export interface TypeVisitor {
|
||||
visitBuiltintType(type: BuiltinType, context: any): any;
|
||||
|
@ -451,12 +451,12 @@ export interface ExpressionVisitor {
|
|||
visitLiteralMapExpr(ast: LiteralMapExpr, context: any): any;
|
||||
}
|
||||
|
||||
export var THIS_EXPR = new ReadVarExpr(BuiltinVar.This);
|
||||
export var SUPER_EXPR = new ReadVarExpr(BuiltinVar.Super);
|
||||
export var CATCH_ERROR_VAR = new ReadVarExpr(BuiltinVar.CatchError);
|
||||
export var CATCH_STACK_VAR = new ReadVarExpr(BuiltinVar.CatchStack);
|
||||
export var NULL_EXPR = new LiteralExpr(null, null);
|
||||
export var TYPED_NULL_EXPR = new LiteralExpr(null, NULL_TYPE);
|
||||
export const THIS_EXPR = new ReadVarExpr(BuiltinVar.This);
|
||||
export const SUPER_EXPR = new ReadVarExpr(BuiltinVar.Super);
|
||||
export const CATCH_ERROR_VAR = new ReadVarExpr(BuiltinVar.CatchError);
|
||||
export const CATCH_STACK_VAR = new ReadVarExpr(BuiltinVar.CatchStack);
|
||||
export const NULL_EXPR = new LiteralExpr(null, null);
|
||||
export const TYPED_NULL_EXPR = new LiteralExpr(null, NULL_TYPE);
|
||||
|
||||
//// Statements
|
||||
export enum StmtModifier {
|
||||
|
|
|
@ -26,7 +26,7 @@ export function createOfflineCompileUrlResolver(): UrlResolver {
|
|||
/**
|
||||
* A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.
|
||||
*/
|
||||
export var DEFAULT_PACKAGE_URL_PROVIDER = {
|
||||
export const DEFAULT_PACKAGE_URL_PROVIDER = {
|
||||
provide: PACKAGE_ROOT_URL,
|
||||
useValue: '/'
|
||||
};
|
||||
|
|
|
@ -133,4 +133,4 @@ type EventSummary = {
|
|||
name: string,
|
||||
target: string,
|
||||
phase: string
|
||||
}
|
||||
};
|
|
@ -45,7 +45,7 @@ const baseErrorIdentifier = {
|
|||
runtime: BaseError
|
||||
};
|
||||
|
||||
export var codegenExportsVars = [
|
||||
export const codegenExportsVars = [
|
||||
'getExpressions',
|
||||
];
|
||||
|
||||
|
@ -191,7 +191,7 @@ const _getExpressionsStmts: o.Statement[] = [
|
|||
]))
|
||||
];
|
||||
|
||||
export var codegenStmts: o.Statement[] = [
|
||||
export const codegenStmts: o.Statement[] = [
|
||||
new o.CommentStmt('This is a comment'),
|
||||
|
||||
new o.ClassStmt(
|
||||
|
|
|
@ -10,14 +10,12 @@
|
|||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export type ViewMetadata = typeof r._ViewMetadata;
|
||||
export var ViewMetadata: typeof r.ViewMetadata = r.ViewMetadata;
|
||||
|
||||
|
||||
export const ViewMetadata: typeof r.ViewMetadata = r.ViewMetadata;
|
||||
|
||||
import {__core_private_testing__ as r2} from '@angular/core/testing';
|
||||
|
||||
export type TestingCompiler = typeof r2._TestingCompiler;
|
||||
export var TestingCompiler: typeof r2.TestingCompiler = r2.TestingCompiler;
|
||||
export const TestingCompiler: typeof r2.TestingCompiler = r2.TestingCompiler;
|
||||
|
||||
export type TestingCompilerFactory = typeof r2._TestingCompilerFactory;
|
||||
export var TestingCompilerFactory: typeof r2.TestingCompilerFactory = r2.TestingCompilerFactory;
|
||||
export const TestingCompilerFactory: typeof r2.TestingCompilerFactory = r2.TestingCompilerFactory;
|
||||
|
|
|
@ -18,7 +18,7 @@ export function createUrlResolverWithoutPackagePrefix(): UrlResolver {
|
|||
// This provider is put here just so that we can access it from multiple
|
||||
// internal test packages.
|
||||
// TODO: get rid of it or move to a separate @angular/internal_testing package
|
||||
export var TEST_COMPILER_PROVIDERS: Provider[] = [
|
||||
export const TEST_COMPILER_PROVIDERS: Provider[] = [
|
||||
{provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {}, {}, [], [])},
|
||||
{provide: ResourceLoader, useClass: MockResourceLoader},
|
||||
{provide: UrlResolver, useFactory: createUrlResolverWithoutPackagePrefix}
|
||||
|
|
|
@ -43,7 +43,7 @@ import * as api from './render/api';
|
|||
import * as decorators from './util/decorators';
|
||||
import {isPromise} from './util/lang';
|
||||
|
||||
export var __core_private__: {
|
||||
export const __core_private__: {
|
||||
isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy,
|
||||
ChangeDetectorStatus: typeof constants.ChangeDetectorStatus,
|
||||
_ChangeDetectorStatus?: constants.ChangeDetectorStatus,
|
||||
|
|
|
@ -50,7 +50,7 @@ function noopScope(arg0?: any, arg1?: any): any {
|
|||
*
|
||||
* @experimental
|
||||
*/
|
||||
export var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn =
|
||||
export const wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn =
|
||||
wtfEnabled ? createScope : (signature: string, flags?: any) => noopScope;
|
||||
|
||||
/**
|
||||
|
@ -62,7 +62,7 @@ export var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn =
|
|||
* Returns the `returnValue for easy chaining.
|
||||
* @experimental
|
||||
*/
|
||||
export var wtfLeave: <T>(scope: any, returnValue?: T) => T =
|
||||
export const wtfLeave: <T>(scope: any, returnValue?: T) => T =
|
||||
wtfEnabled ? leave : (s: any, r?: any) => r;
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ export var wtfLeave: <T>(scope: any, returnValue?: T) => T =
|
|||
* }
|
||||
* @experimental
|
||||
*/
|
||||
export var wtfStartTimeRange: (rangeType: string, action: string) => any =
|
||||
export const wtfStartTimeRange: (rangeType: string, action: string) => any =
|
||||
wtfEnabled ? startTimeRange : (rangeType: string, action: string) => null;
|
||||
|
||||
/**
|
||||
|
@ -87,4 +87,4 @@ export var wtfStartTimeRange: (rangeType: string, action: string) => any =
|
|||
* enabled.
|
||||
* @experimental
|
||||
*/
|
||||
export var wtfEndTimeRange: (range: any) => void = wtfEnabled ? endTimeRange : (r: any) => null;
|
||||
export const wtfEndTimeRange: (range: any) => void = wtfEnabled ? endTimeRange : (r: any) => null;
|
||||
|
|
|
@ -332,7 +332,7 @@ export function main() {
|
|||
static ctorParameters = () =>
|
||||
[{type: A, decorators: [{type: ParamDecorator, args: ['a']}]},
|
||||
{type: B, decorators: [{type: ParamDecorator, args: ['b']}]},
|
||||
];
|
||||
]
|
||||
}
|
||||
|
||||
class Child extends Parent {}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import * as mock_animation_player from './mock_animation_player';
|
||||
import * as test_compiler from './test_compiler';
|
||||
|
||||
export var __core_private_testing__: {
|
||||
export const __core_private_testing__: {
|
||||
TestingCompiler: typeof test_compiler.TestingCompiler,
|
||||
_TestingCompiler?: test_compiler.TestingCompiler,
|
||||
TestingCompilerFactory: typeof test_compiler.TestingCompilerFactory,
|
||||
|
|
|
@ -29,4 +29,4 @@ if (_global.beforeEach) {
|
|||
|
||||
// TODO(juliemr): remove this, only used because we need to export something to have compilation
|
||||
// work.
|
||||
export var __core_private_testing_placeholder__ = '';
|
||||
export const __core_private_testing_placeholder__ = '';
|
||||
|
|
|
@ -19,12 +19,12 @@ export {inject} from './test_bed';
|
|||
export * from './logger';
|
||||
export * from './ng_zone_mock';
|
||||
|
||||
export var proxy: ClassDecorator = (t: any) => t;
|
||||
export const proxy: ClassDecorator = (t: any) => t;
|
||||
|
||||
const _global = <any>(typeof window === 'undefined' ? global : window);
|
||||
|
||||
export var afterEach: Function = _global.afterEach;
|
||||
export var expect: (actual: any) => jasmine.Matchers = _global.expect;
|
||||
export const afterEach: Function = _global.afterEach;
|
||||
export const expect: (actual: any) => jasmine.Matchers = _global.expect;
|
||||
|
||||
const jsmBeforeEach = _global.beforeEach;
|
||||
const jsmDescribe = _global.describe;
|
||||
|
|
|
@ -19,7 +19,7 @@ export type MockData = string | MockDirectory;
|
|||
|
||||
export type MockDirectory = {
|
||||
[name: string]: MockData | undefined;
|
||||
}
|
||||
};
|
||||
|
||||
const angularts = /@angular\/(\w|\/|-)+\.tsx?$/;
|
||||
const rxjsts = /rxjs\/(\w|\/)+\.tsx?$/;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';
|
||||
import * as resource_loader from './resource_loader/resource_loader_impl';
|
||||
|
||||
export var __platform_browser_dynamic_private__: {
|
||||
export const __platform_browser_dynamic_private__: {
|
||||
INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: typeof INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
|
||||
_ResourceLoaderImpl?: resource_loader.ResourceLoaderImpl,
|
||||
ResourceLoaderImpl: typeof resource_loader.ResourceLoaderImpl
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export var Console: typeof r.Console = r.Console;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
export const Console: typeof r.Console = r.Console;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__platform_browser_private__ as _} from '@angular/platform-browser';
|
||||
|
||||
export var INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof _.INTERNAL_BROWSER_PLATFORM_PROVIDERS =
|
||||
export const INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof _.INTERNAL_BROWSER_PLATFORM_PROVIDERS =
|
||||
_.INTERNAL_BROWSER_PLATFORM_PROVIDERS;
|
||||
export var getDOM: typeof _.getDOM = _.getDOM;
|
||||
export const getDOM: typeof _.getDOM = _.getDOM;
|
||||
|
|
|
@ -11,8 +11,6 @@ import {TestComponentRenderer} from '@angular/core/testing';
|
|||
import {DOCUMENT} from '@angular/platform-browser';
|
||||
import {getDOM} from './private_import_platform-browser';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A DOM based implementation of the TestComponentRenderer.
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import * as testing from './dom_test_component_renderer';
|
||||
|
||||
export var __platform_browser_dynamic_private__:
|
||||
export const __platform_browser_dynamic_private__:
|
||||
{DOMTestComponentRenderer: typeof testing.DOMTestComponentRenderer} = {
|
||||
DOMTestComponentRenderer: testing.DOMTestComponentRenderer
|
||||
};
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__platform_browser_dynamic_private__ as _} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export var INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:
|
||||
export const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:
|
||||
typeof _.INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS =
|
||||
_.INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS;
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
import {__platform_browser_private__ as _} from '@angular/platform-browser';
|
||||
|
||||
export var getDOM: typeof _.getDOM = _.getDOM;
|
||||
export const getDOM: typeof _.getDOM = _.getDOM;
|
||||
|
|
|
@ -20,7 +20,7 @@ import * as key_events from './dom/events/key_events';
|
|||
import * as shared_styles_host from './dom/shared_styles_host';
|
||||
import {WebAnimationsDriver} from './dom/web_animations_driver';
|
||||
|
||||
export var __platform_browser_private__: {
|
||||
export const __platform_browser_private__: {
|
||||
_BrowserPlatformLocation?: location.BrowserPlatformLocation,
|
||||
BrowserPlatformLocation: typeof location.BrowserPlatformLocation,
|
||||
_DomAdapter?: dom_adapter.DomAdapter,
|
||||
|
|
|
@ -9,30 +9,30 @@
|
|||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export type RenderDebugInfo = typeof r._RenderDebugInfo;
|
||||
export var RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export const RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export type DirectRenderer = typeof r._DirectRenderer;
|
||||
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
|
||||
export type DebugDomRootRenderer = typeof r._DebugDomRootRenderer;
|
||||
export var DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export const DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
|
||||
export type NoOpAnimationPlayer = typeof r._NoOpAnimationPlayer;
|
||||
export var NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export const NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export type AnimationPlayer = typeof r._AnimationPlayer;
|
||||
export var AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export const AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationSequencePlayer = typeof r._AnimationSequencePlayer;
|
||||
export var AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export const AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export type AnimationGroupPlayer = typeof r._AnimationGroupPlayer;
|
||||
export var AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export const AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export type AnimationKeyframe = typeof r._AnimationKeyframe;
|
||||
export var AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export const AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationStyles = typeof r._AnimationStyles;
|
||||
export var AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export var prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
export const AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export const prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
r.prepareFinalAnimationStyles;
|
||||
export var balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
export const balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
r.balanceAnimationKeyframes;
|
||||
export var clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export var collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
export const clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export const collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
|
|
|
@ -11,6 +11,8 @@ import {NgZone} from '@angular/core';
|
|||
import {global} from './facade/lang';
|
||||
import {getDOM} from './private_import_platform-browser';
|
||||
|
||||
export let browserDetection: BrowserDetection;
|
||||
|
||||
export class BrowserDetection {
|
||||
private _overrideUa: string;
|
||||
private get _ua(): string {
|
||||
|
@ -133,8 +135,6 @@ export function stringifyElement(el: any /** TODO #9100 */): string {
|
|||
return result;
|
||||
}
|
||||
|
||||
export var browserDetection: BrowserDetection = new BrowserDetection(null);
|
||||
|
||||
export function createNgZone(): NgZone {
|
||||
return new NgZone({enableLongStackTrace: true});
|
||||
}
|
||||
}
|
|
@ -9,25 +9,25 @@ import {__core_private__ as r} from '@angular/core';
|
|||
|
||||
|
||||
export type RenderDebugInfo = typeof r._RenderDebugInfo;
|
||||
export var RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export const RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
|
||||
export type NoOpAnimationPlayer = typeof r._NoOpAnimationPlayer;
|
||||
export var NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export const NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export type AnimationPlayer = typeof r._AnimationPlayer;
|
||||
export var AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export const AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationSequencePlayer = typeof r._AnimationSequencePlayer;
|
||||
export var AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export const AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export type AnimationGroupPlayer = typeof r._AnimationGroupPlayer;
|
||||
export var AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export const AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export type AnimationKeyframe = typeof r._AnimationKeyframe;
|
||||
export var AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export const AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationStyles = typeof r._AnimationStyles;
|
||||
export var AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export var prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
export const AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export const prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
r.prepareFinalAnimationStyles;
|
||||
export var balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
export const balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
r.balanceAnimationKeyframes;
|
||||
export var clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export var collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
export const clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export const collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__platform_browser_private__ as _} from '@angular/platform-browser';
|
||||
|
||||
export var getDOM: typeof _.getDOM = _.getDOM;
|
||||
export var BrowserDomAdapter: typeof _.BrowserDomAdapter = _.BrowserDomAdapter;
|
||||
export var ELEMENT_PROBE_PROVIDERS: typeof _.ELEMENT_PROBE_PROVIDERS = _.ELEMENT_PROBE_PROVIDERS;
|
||||
export const getDOM: typeof _.getDOM = _.getDOM;
|
||||
export const BrowserDomAdapter: typeof _.BrowserDomAdapter = _.BrowserDomAdapter;
|
||||
export const ELEMENT_PROBE_PROVIDERS: typeof _.ELEMENT_PROBE_PROVIDERS = _.ELEMENT_PROBE_PROVIDERS;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
import {INTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_RENDER_PROVIDERS} from './server';
|
||||
|
||||
export var __platform_server_private__: {
|
||||
export const __platform_server_private__: {
|
||||
INTERNAL_SERVER_PLATFORM_PROVIDERS: typeof INTERNAL_SERVER_PLATFORM_PROVIDERS,
|
||||
SERVER_RENDER_PROVIDERS: typeof SERVER_RENDER_PROVIDERS,
|
||||
} = {
|
||||
|
|
|
@ -8,18 +8,18 @@
|
|||
|
||||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export var Console: typeof r.Console = r.Console;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const Console: typeof r.Console = r.Console;
|
||||
export type AnimationKeyframe = typeof r._AnimationKeyframe;
|
||||
export var AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export const AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationPlayer = typeof r._AnimationPlayer;
|
||||
export var AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export const AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationStyles = typeof r._AnimationStyles;
|
||||
export var AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export const AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export type RenderDebugInfo = typeof r._RenderDebugInfo;
|
||||
export var RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export const RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export type DebugDomRootRenderer = typeof r._DebugDomRootRenderer;
|
||||
export var DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
export const DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
export type NoOpAnimationPlayer = typeof r._NoOpAnimationPlayer;
|
||||
export var NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export const NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
import {__platform_browser_private__ as _} from '@angular/platform-browser';
|
||||
|
||||
export type DomAdapter = typeof _._DomAdapter;
|
||||
export var DomAdapter: typeof _.DomAdapter = _.DomAdapter;
|
||||
export var setRootDomAdapter: typeof _.setRootDomAdapter = _.setRootDomAdapter;
|
||||
export var getDOM: typeof _.getDOM = _.getDOM;
|
||||
export var SharedStylesHost: typeof _.SharedStylesHost = _.SharedStylesHost;
|
||||
export const DomAdapter: typeof _.DomAdapter = _.DomAdapter;
|
||||
export const setRootDomAdapter: typeof _.setRootDomAdapter = _.setRootDomAdapter;
|
||||
export const getDOM: typeof _.getDOM = _.getDOM;
|
||||
export const SharedStylesHost: typeof _.SharedStylesHost = _.SharedStylesHost;
|
||||
export type SharedStylesHost = typeof _._SharedStylesHost;
|
||||
export var NAMESPACE_URIS: typeof _.NAMESPACE_URIS = _.NAMESPACE_URIS;
|
||||
export var shimContentAttribute: typeof _.shimContentAttribute = _.shimContentAttribute;
|
||||
export var shimHostAttribute: typeof _.shimHostAttribute = _.shimHostAttribute;
|
||||
export var flattenStyles: typeof _.flattenStyles = _.flattenStyles;
|
||||
export var splitNamespace: typeof _.splitNamespace = _.splitNamespace;
|
||||
export var isNamespaced: typeof _.isNamespaced = _.isNamespaced;
|
||||
export const NAMESPACE_URIS: typeof _.NAMESPACE_URIS = _.NAMESPACE_URIS;
|
||||
export const shimContentAttribute: typeof _.shimContentAttribute = _.shimContentAttribute;
|
||||
export const shimHostAttribute: typeof _.shimHostAttribute = _.shimHostAttribute;
|
||||
export const flattenStyles: typeof _.flattenStyles = _.flattenStyles;
|
||||
export const splitNamespace: typeof _.splitNamespace = _.splitNamespace;
|
||||
export const isNamespaced: typeof _.isNamespaced = _.isNamespaced;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__platform_server_private__ as _} from '@angular/platform-server';
|
||||
|
||||
export var INTERNAL_SERVER_PLATFORM_PROVIDERS: typeof _.INTERNAL_SERVER_PLATFORM_PROVIDERS =
|
||||
export const INTERNAL_SERVER_PLATFORM_PROVIDERS: typeof _.INTERNAL_SERVER_PLATFORM_PROVIDERS =
|
||||
_.INTERNAL_SERVER_PLATFORM_PROVIDERS;
|
||||
export var SERVER_RENDER_PROVIDERS: typeof _.SERVER_RENDER_PROVIDERS = _.SERVER_RENDER_PROVIDERS;
|
||||
export const SERVER_RENDER_PROVIDERS: typeof _.SERVER_RENDER_PROVIDERS = _.SERVER_RENDER_PROVIDERS;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export var Console: typeof r.Console = r.Console;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
export const Console: typeof r.Console = r.Console;
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
import {__platform_browser_dynamic_private__ as _} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export var ResourceLoaderImpl: typeof _.ResourceLoaderImpl = _.ResourceLoaderImpl;
|
||||
export const ResourceLoaderImpl: typeof _.ResourceLoaderImpl = _.ResourceLoaderImpl;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__platform_browser_private__ as _} from '@angular/platform-browser';
|
||||
|
||||
export var INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof _.INTERNAL_BROWSER_PLATFORM_PROVIDERS =
|
||||
export const INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof _.INTERNAL_BROWSER_PLATFORM_PROVIDERS =
|
||||
_.INTERNAL_BROWSER_PLATFORM_PROVIDERS;
|
||||
export var getDOM: typeof _.getDOM = _.getDOM;
|
||||
export const getDOM: typeof _.getDOM = _.getDOM;
|
||||
|
|
|
@ -9,30 +9,30 @@
|
|||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export type RenderDebugInfo = typeof r._RenderDebugInfo;
|
||||
export var RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export const RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
|
||||
export type DebugDomRootRenderer = typeof r._DebugDomRootRenderer;
|
||||
export var DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
export var reflector: typeof r.reflector = r.reflector;
|
||||
export const DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
|
||||
export type NoOpAnimationPlayer = typeof r._NoOpAnimationPlayer;
|
||||
export var NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export const NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export type AnimationPlayer = typeof r._AnimationPlayer;
|
||||
export var AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export const AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationSequencePlayer = typeof r._AnimationSequencePlayer;
|
||||
export var AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export const AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export type AnimationGroupPlayer = typeof r._AnimationGroupPlayer;
|
||||
export var AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export const AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export type AnimationKeyframe = typeof r._AnimationKeyframe;
|
||||
export var AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export const AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationStyles = typeof r._AnimationStyles;
|
||||
export var AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export var prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
export const AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export const prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
r.prepareFinalAnimationStyles;
|
||||
export var balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
export const balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
r.balanceAnimationKeyframes;
|
||||
export var clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export var collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
export var APP_ID_RANDOM_PROVIDER: typeof r.APP_ID_RANDOM_PROVIDER = r.APP_ID_RANDOM_PROVIDER;
|
||||
export const clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export const collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
export const APP_ID_RANDOM_PROVIDER: typeof r.APP_ID_RANDOM_PROVIDER = r.APP_ID_RANDOM_PROVIDER;
|
||||
|
|
|
@ -159,39 +159,37 @@ export type Inherited = {
|
|||
params: Params,
|
||||
data: Data,
|
||||
resolve: Data,
|
||||
}
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export function
|
||||
inheritedParamsDataResolve(route: ActivatedRouteSnapshot):
|
||||
Inherited {
|
||||
const pathToRoot = route.pathFromRoot;
|
||||
export function inheritedParamsDataResolve(route: ActivatedRouteSnapshot): Inherited {
|
||||
const pathToRoot = route.pathFromRoot;
|
||||
|
||||
let inhertingStartingFrom = pathToRoot.length - 1;
|
||||
let inhertingStartingFrom = pathToRoot.length - 1;
|
||||
|
||||
while (inhertingStartingFrom >= 1) {
|
||||
const current = pathToRoot[inhertingStartingFrom];
|
||||
const parent = pathToRoot[inhertingStartingFrom - 1];
|
||||
// current route is an empty path => inherits its parent's params and data
|
||||
if (current.routeConfig && current.routeConfig.path === '') {
|
||||
inhertingStartingFrom--;
|
||||
while (inhertingStartingFrom >= 1) {
|
||||
const current = pathToRoot[inhertingStartingFrom];
|
||||
const parent = pathToRoot[inhertingStartingFrom - 1];
|
||||
// current route is an empty path => inherits its parent's params and data
|
||||
if (current.routeConfig && current.routeConfig.path === '') {
|
||||
inhertingStartingFrom--;
|
||||
|
||||
// parent is componentless => current route should inherit its params and data
|
||||
} else if (!parent.component) {
|
||||
inhertingStartingFrom--;
|
||||
// parent is componentless => current route should inherit its params and data
|
||||
} else if (!parent.component) {
|
||||
inhertingStartingFrom--;
|
||||
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return pathToRoot.slice(inhertingStartingFrom).reduce((res, curr) => {
|
||||
const params = merge(res.params, curr.params);
|
||||
const data = merge(res.data, curr.data);
|
||||
const resolve = merge(res.resolve, curr._resolvedData);
|
||||
return {params, data, resolve};
|
||||
}, <any>{params: {}, data: {}, resolve: {}});
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return pathToRoot.slice(inhertingStartingFrom).reduce((res, curr) => {
|
||||
const params = merge(res.params, curr.params);
|
||||
const data = merge(res.data, curr.data);
|
||||
const resolve = merge(res.resolve, curr._resolvedData);
|
||||
return {params, data, resolve};
|
||||
}, <any>{params: {}, data: {}, resolve: {}});
|
||||
}
|
||||
|
||||
/**
|
||||
* @whatItDoes Contains the information about a route associated with a component loaded in an
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
|
||||
import {__router_private__ as _} from '@angular/router';
|
||||
|
||||
export var ROUTER_PROVIDERS: typeof _.ROUTER_PROVIDERS = _.ROUTER_PROVIDERS;
|
||||
export var ROUTES: typeof _.ROUTES = _.ROUTES;
|
||||
export var flatten: typeof _.flatten = _.flatten;
|
||||
export const ROUTER_PROVIDERS: typeof _.ROUTER_PROVIDERS = _.ROUTER_PROVIDERS;
|
||||
export const ROUTES: typeof _.ROUTES = _.ROUTES;
|
||||
export const flatten: typeof _.flatten = _.flatten;
|
||||
|
|
|
@ -57,7 +57,7 @@ export interface IRootScopeService {
|
|||
[key: string]: any;
|
||||
}
|
||||
export interface IScope extends IRootScopeService {}
|
||||
;
|
||||
|
||||
export interface IAngularBootstrapConfig { strictDi?: boolean; }
|
||||
export interface IDirective {
|
||||
compile?: IDirectiveCompileFn;
|
||||
|
@ -190,9 +190,9 @@ try {
|
|||
// ignore in CJS mode.
|
||||
}
|
||||
|
||||
export var bootstrap = angular.bootstrap;
|
||||
export var module = angular.module;
|
||||
export var element = angular.element;
|
||||
export var version = angular.version;
|
||||
export var resumeBootstrap = angular.resumeBootstrap;
|
||||
export var getTestability = angular.getTestability;
|
||||
export const bootstrap = angular.bootstrap;
|
||||
export const module = angular.module;
|
||||
export const element = angular.element;
|
||||
export const version = angular.version;
|
||||
export const resumeBootstrap = angular.resumeBootstrap;
|
||||
export const getTestability = angular.getTestability;
|
||||
|
|
|
@ -8,31 +8,31 @@
|
|||
|
||||
import {Math} from '@angular/facade/src/math';
|
||||
|
||||
export var ITEMS = 1000;
|
||||
export var ITEM_HEIGHT = 40;
|
||||
export var VISIBLE_ITEMS = 17;
|
||||
export const ITEMS = 1000;
|
||||
export const ITEM_HEIGHT = 40;
|
||||
export const VISIBLE_ITEMS = 17;
|
||||
|
||||
export var HEIGHT = ITEMS * ITEM_HEIGHT;
|
||||
export var VIEW_PORT_HEIGHT = ITEM_HEIGHT * VISIBLE_ITEMS;
|
||||
export const HEIGHT = ITEMS * ITEM_HEIGHT;
|
||||
export const VIEW_PORT_HEIGHT = ITEM_HEIGHT * VISIBLE_ITEMS;
|
||||
|
||||
export var COMPANY_NAME_WIDTH = 100;
|
||||
export var OPPORTUNITY_NAME_WIDTH = 100;
|
||||
export var OFFERING_NAME_WIDTH = 100;
|
||||
export var ACCOUNT_CELL_WIDTH = 50;
|
||||
export var BASE_POINTS_WIDTH = 50;
|
||||
export var KICKER_POINTS_WIDTH = 50;
|
||||
export var STAGE_BUTTONS_WIDTH = 220;
|
||||
export var BUNDLES_WIDTH = 120;
|
||||
export var DUE_DATE_WIDTH = 100;
|
||||
export var END_DATE_WIDTH = 100;
|
||||
export var AAT_STATUS_WIDTH = 100;
|
||||
export var ROW_WIDTH = COMPANY_NAME_WIDTH + OPPORTUNITY_NAME_WIDTH + OFFERING_NAME_WIDTH +
|
||||
export const COMPANY_NAME_WIDTH = 100;
|
||||
export const OPPORTUNITY_NAME_WIDTH = 100;
|
||||
export const OFFERING_NAME_WIDTH = 100;
|
||||
export const ACCOUNT_CELL_WIDTH = 50;
|
||||
export const BASE_POINTS_WIDTH = 50;
|
||||
export const KICKER_POINTS_WIDTH = 50;
|
||||
export const STAGE_BUTTONS_WIDTH = 220;
|
||||
export const BUNDLES_WIDTH = 120;
|
||||
export const DUE_DATE_WIDTH = 100;
|
||||
export const END_DATE_WIDTH = 100;
|
||||
export const AAT_STATUS_WIDTH = 100;
|
||||
export const ROW_WIDTH = COMPANY_NAME_WIDTH + OPPORTUNITY_NAME_WIDTH + OFFERING_NAME_WIDTH +
|
||||
ACCOUNT_CELL_WIDTH + BASE_POINTS_WIDTH + KICKER_POINTS_WIDTH + STAGE_BUTTONS_WIDTH +
|
||||
BUNDLES_WIDTH + DUE_DATE_WIDTH + END_DATE_WIDTH + AAT_STATUS_WIDTH;
|
||||
|
||||
export var STATUS_LIST = ['Planned', 'Pitched', 'Won', 'Lost'];
|
||||
export const STATUS_LIST = ['Planned', 'Pitched', 'Won', 'Lost'];
|
||||
|
||||
export var AAT_STATUS_LIST = ['Active', 'Passive', 'Abandoned'];
|
||||
export const AAT_STATUS_LIST = ['Active', 'Passive', 'Abandoned'];
|
||||
|
||||
// Imitate Streamy entities.
|
||||
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
// This file intentionally left blank. It is used to load nothing in some cases.
|
||||
// Such as parse5/index is redirected here instead of loading into browser.
|
||||
|
||||
export var __empty__: any;
|
||||
export let __empty__: any;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
export var data = [
|
||||
export const data = [
|
||||
{
|
||||
'id': '1',
|
||||
'first-name': 'Montana',
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -51,7 +51,7 @@
|
|||
"gulp-clang-format": "^1.0.23",
|
||||
"gulp-connect": "^2.3.1",
|
||||
"gulp-conventional-changelog": "^1.1.0",
|
||||
"gulp-tslint": "^6.1.1",
|
||||
"gulp-tslint": "^7.0.1",
|
||||
"hammerjs": "^2.0.8",
|
||||
"incremental-dom": "^0.4.1",
|
||||
"jasmine": "^2.4.1",
|
||||
|
@ -80,11 +80,11 @@
|
|||
"systemjs": "0.18.10",
|
||||
"ts-api-guardian": "0.1.4",
|
||||
"tsickle": "^0.2.1",
|
||||
"tslint": "^3.15.1",
|
||||
"tslint": "^4.1.1",
|
||||
"tslint-eslint-rules": "^3.1.0",
|
||||
"typescript": "^2.0.2",
|
||||
"universal-analytics": "^0.3.9",
|
||||
"vrsource-tslint-rules": "^0.14.1",
|
||||
"vrsource-tslint-rules": "^4.0.0",
|
||||
"webpack": "^1.12.6",
|
||||
"yargs": "^3.31.0"
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ interface DecoratorInvocation {
|
|||
}
|
||||
}
|
||||
return ts.createSourceFile(fileName, newContent, languageVersion, true);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class TsickleCompilerHost extends DelegatingHost {
|
||||
|
@ -104,7 +104,7 @@ export class TsickleCompilerHost extends DelegatingHost {
|
|||
tsickle.annotate(this.oldProgram, sourceFile, {untyped: true});
|
||||
this.diagnostics = diagnostics;
|
||||
return ts.createSourceFile(fileName, output, languageVersion, true);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
const IGNORED_FILES = /\.ngfactory\.js$|\.ngstyle\.js$/;
|
||||
|
@ -156,5 +156,5 @@ export class MetadataWriterHost extends DelegatingHost {
|
|||
throw new Error('Bundled emit with --out is not supported');
|
||||
}
|
||||
this.writeMetadata(fileName, sourceFiles[0]);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -160,4 +160,4 @@ export class Tsc implements CompilerInterface {
|
|||
return emitResult.emitSkipped ? 1 : 0;
|
||||
}
|
||||
}
|
||||
export var tsc: CompilerInterface = new Tsc();
|
||||
export const tsc: CompilerInterface = new Tsc();
|
||||
|
|
|
@ -1026,13 +1026,13 @@ export declare class WrappedValue {
|
|||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
|
||||
export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
|
||||
|
||||
/** @experimental */
|
||||
export declare var wtfEndTimeRange: (range: any) => void;
|
||||
export declare const wtfEndTimeRange: (range: any) => void;
|
||||
|
||||
/** @experimental */
|
||||
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
||||
export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
||||
|
||||
/** @experimental */
|
||||
export interface WtfScopeFn {
|
||||
|
@ -1040,4 +1040,4 @@ export interface WtfScopeFn {
|
|||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
|
||||
export declare const wtfStartTimeRange: (rangeType: string, action: string) => any;
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {RuleFailure} from 'tslint/lib';
|
||||
import {RuleWalker} from 'tslint/lib/language/walker';
|
||||
import {RuleFailure} from 'tslint/lib/lint';
|
||||
import {AbstractRule} from 'tslint/lib/rules';
|
||||
import * as ts from 'typescript';
|
||||
|
||||
|
|
Loading…
Reference in New Issue