Skip to content

Commit

Permalink
fix(d.ts): enable angular2 compilation with TS flag --strictNullChecks (
Browse files Browse the repository at this point in the history
angular#8902)

Eliminate the following compiler error when using TS 1.9+ with strict null checking enabled:

node_modules/@angular/core/src/util/decorators.d.ts(9,5): error TS2411: Property 'extends' of type 'Type | undefined' is not assignable to string index type 'Type | Function | any[]'.

angular#8720
  • Loading branch information
opensrcken authored and KiaraGrouwstra committed Jun 21, 2016
1 parent c0d9d7a commit efc18d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/@angular/core/src/util/decorators.ts
Expand Up @@ -26,7 +26,7 @@ export interface ClassDefinition {
* Other methods on the class. Note that values should have type 'Function' but TS requires
* all properties to have a narrower type than the index signature.
*/
[x: string]: Type | Function | any[];
[x: string]: Type | Function | any[] | undefined;
}

/**
Expand Down

0 comments on commit efc18d2

Please sign in to comment.