Skip to content

Commit

Permalink
Update the readme.md to support 2.7 with strictPropertyInitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDesjardins authored and dfahlander committed Jun 4, 2018
1 parent 0e7a5a9 commit 9e5ca00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,17 @@ interface IFriend {
// Declare Database
//
class FriendDatabase extends Dexie {
friends: Dexie.Table<IFriend,number>;
public friends!: Dexie.Table<IFriend,number>;

constructor() {
public constructor() {
super("FriendDatabase");
this.version(1).stores({
friends: "++id,name,age"
});
}
}

var db = new FriendDatabase();
const db = new FriendDatabase();

db.transaction('rw', db.friends, async() => {

Expand Down

0 comments on commit 9e5ca00

Please sign in to comment.