Skip to content

Commit

Permalink
fix: identity literal typing was missing @ d.ts + ts to 2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kukeiko committed Dec 28, 2017
1 parent 9583234 commit c496034
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"reflect-metadata": "0.1.10",
"rimraf": "2.6.1",
"tslint": "4.5.1",
"typescript": "2.4.2",
"typescript": "2.6.2",
"webpack": "2.3.2",
"webpack-dev-server": "2.4.2"
}
}
}
9 changes: 6 additions & 3 deletions src/elements/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export abstract class IdentityBase {
* Points to all entities.
*/
export class All extends IdentityBase {
readonly type = "all";
// we have to explicitly state the type, otherwise its missing @ d.ts
readonly type: "all" = "all";

/** @inheritdoc */
readonly priority = 0;
Expand All @@ -82,7 +83,8 @@ export class All extends IdentityBase {
* Points a set of entities specified by their primary keys.
*/
export class ByIds extends IdentityBase {
readonly type = "ids";
// we have to explicitly state the type, otherwise its missing @ d.ts
readonly type: "ids" = "ids";

/** @inheritdoc */
readonly priority = 1;
Expand Down Expand Up @@ -119,7 +121,8 @@ export class ByIds extends IdentityBase {
* Points to a set of entities specified by the values of indexed properties.
*/
export class ByIndexes extends IdentityBase {
readonly type = "indexes";
// we have to explicitly state the type, otherwise its missing @ d.ts
readonly type: "indexes" = "indexes";

/** @inheritdoc */
readonly priority = 2;
Expand Down

0 comments on commit c496034

Please sign in to comment.