fix: turn on nullability in the code base.

This commit is contained in:
Miško Hevery
2017-04-14 14:40:56 -07:00
committed by Tobias Bosch
parent 728c9d0632
commit 5293794316
27 changed files with 67 additions and 70 deletions

View File

@ -341,7 +341,7 @@ export declare class DebugNode {
/** @deprecated */
export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, IterableChanges<V> {
readonly collection: NgIterable<V>;
readonly collection: V[] | Iterable<V> | null;
readonly isDirty: boolean;
readonly length: number;
constructor(trackByFn?: TrackByFunction<V>);
@ -716,7 +716,7 @@ export declare const PLATFORM_ID: InjectionToken<Object>;
export declare const PLATFORM_INITIALIZER: InjectionToken<(() => void)[]>;
/** @experimental */
export declare const platformCore: (extraProviders?: Provider[]) => PlatformRef;
export declare const platformCore: (extraProviders?: Provider[] | undefined) => PlatformRef;
/** @stable */
export declare abstract class PlatformRef {
@ -891,7 +891,7 @@ export declare abstract class RootRenderer {
/** @stable */
export declare abstract class Sanitizer {
abstract sanitize(context: SecurityContext, value: string): string | null;
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
}
/** @experimental */