Skip to content

Commit

Permalink
Update according to dexie#801
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Feb 24, 2019
1 parent 4ba5714 commit 8d8d524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ interface Friend {
// Declare Database
//
class FriendDatabase extends Dexie {
public friends!: Dexie.Table<Friend, number>; // id is number in this case
public friends: Dexie.Table<Friend, number>; // id is number in this case

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

Expand Down

0 comments on commit 8d8d524

Please sign in to comment.