refactor: update angular to support TypeScript 2.4
Detailed updates: - rxjs@5.0.x - tsickle@0.24.x - typescript@2.4.x - @bazel/typescript@0.10.0 - protractor@5.1.x - selenium-webdriver@3.0.x BREAKING CHANGE: - the Angular compiler now requires TypeScript 2.4.x.
This commit is contained in:

committed by
Matias Niemelä

parent
112e777b90
commit
ca5aebaa6b
4
tools/public_api_guard/common/index.d.ts
vendored
4
tools/public_api_guard/common/index.d.ts
vendored
@ -287,8 +287,8 @@ export declare class NgIfContext {
|
||||
/** @experimental */
|
||||
export declare class NgLocaleLocalization extends NgLocalization {
|
||||
protected locale: string;
|
||||
protected useV4Plurals: boolean;
|
||||
constructor(locale: string, useV4Plurals?: boolean);
|
||||
protected useV4Plurals: boolean | undefined;
|
||||
constructor(locale: string, useV4Plurals?: boolean | undefined);
|
||||
getPluralCategory(value: any, locale?: string): string;
|
||||
}
|
||||
|
||||
|
2
tools/public_api_guard/core/index.d.ts
vendored
2
tools/public_api_guard/core/index.d.ts
vendored
@ -500,7 +500,7 @@ export interface IterableChanges<V> {
|
||||
forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void;
|
||||
forEachItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
||||
forEachMovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
||||
forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number, currentIndex: number) => void): void;
|
||||
forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void): void;
|
||||
forEachPreviousItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
||||
forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
||||
}
|
||||
|
@ -73,9 +73,9 @@ export declare abstract class ServiceMessageBrokerFactory {
|
||||
|
||||
/** @experimental */
|
||||
export declare class UiArguments {
|
||||
args: FnArg[];
|
||||
args: FnArg[] | undefined;
|
||||
method: string;
|
||||
constructor(method: string, args?: FnArg[]);
|
||||
constructor(method: string, args?: FnArg[] | undefined);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
|
2
tools/public_api_guard/upgrade/index.d.ts
vendored
2
tools/public_api_guard/upgrade/index.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
/** @deprecated */
|
||||
export declare class UpgradeAdapter {
|
||||
constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions);
|
||||
constructor(ng2AppModule: Type<any>, compilerOptions?: CompilerOptions | undefined);
|
||||
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
|
||||
downgradeNg2Component(component: Type<any>): Function;
|
||||
downgradeNg2Provider(token: any): Function;
|
||||
|
@ -35,8 +35,8 @@ class TypedefWalker extends RuleWalker {
|
||||
return comment.indexOf('@internal') >= 0;
|
||||
}
|
||||
|
||||
private assertInternalAnnotationPresent(node: ts.Declaration) {
|
||||
if (node.name.getText().charAt(0) !== '_') return;
|
||||
private assertInternalAnnotationPresent(node: ts.NamedDeclaration) {
|
||||
if (node.name && node.name.getText().charAt(0) !== '_') return;
|
||||
if (ts.getCombinedModifierFlags(node) & ts.ModifierFlags.Private) return;
|
||||
|
||||
const ranges = ts.getLeadingCommentRanges(this.getSourceFile().text, node.pos);
|
||||
|
Reference in New Issue
Block a user