Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Update to TypeScript 1.8
Browse files Browse the repository at this point in the history
elisee committed Feb 25, 2016
1 parent f9819da commit 2ee3d56
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SupCore/Data/ProjectManifest.ts
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ export default class ProjectManifest extends Hash {
migratedFromFormatVersion: number;

constructor(pub: SupCore.Data.ProjectManifestPub) {
this.migratedFromFormatVersion = ProjectManifest.migrate(pub);

const migratedFromFormatVersion = ProjectManifest.migrate(pub);
super(pub, ProjectManifest.schema);
this.migratedFromFormatVersion = migratedFromFormatVersion;
}

static migrate(pub: SupCore.Data.ProjectManifestPub): number {
7 changes: 4 additions & 3 deletions SupCore/Data/Projects.ts
Original file line number Diff line number Diff line change
@@ -19,10 +19,11 @@ export default class Projects extends ListById {
byId: { [id: string]: SupCore.Data.ProjectManifestPub; };

constructor(pub: SupCore.Data.ProjectManifestPub[]) {
super(pub, Projects.schema, this.generateProjectId);
super(pub, Projects.schema);
this.generateNextId = this.generateProjectId;
}

generateProjectId(): string {
private generateProjectId = () => {
let id: string = null;

while (true) {
@@ -32,5 +33,5 @@ export default class Projects extends ListById {
}

return id;
}
};
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
"gulp-rename": "^1.2.2",
"gulp-stylus": "^2.3.0",
"gulp-tslint": "^4.3.1",
"gulp-typescript": "~2.11.0",
"gulp-typescript": "~2.12.0",
"gulp-util": "^3.0.7",
"simple-dialogs": "^1.0.1",
"socket.io-client": "^1.4.4",

0 comments on commit 2ee3d56

Please sign in to comment.