Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

Commit 8ee1807

Browse files
JacerOmriimhoffd
authored andcommitted
make IUserData get default value optional (#144)
1 parent 62a746c commit 8ee1807

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export interface StoredUser {
376376
export interface IUserData {
377377
data: Object;
378378

379-
get(key: string, defaultValue: any);
379+
get(key: string, defaultValue?: any);
380380
set(key: string, value: any);
381381
unset(key: string);
382382
}

src/user/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class UserData implements IUserData {
8282
}
8383
}
8484

85-
public get(key: string, defaultValue: any) {
85+
public get(key: string, defaultValue?: any) {
8686
if (this.data.hasOwnProperty(key)) {
8787
return this.data[key];
8888
} else {

0 commit comments

Comments
 (0)