Skip to content

Commit

Permalink
feat(types): Allow user.id to be a number (#8330)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT authored Jul 11, 2023
1 parent 428e531 commit 130e4a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/types/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface RequestSession {

export interface Session {
sid: string;
did?: string;
did?: string | number;
init: boolean;
// seconds since the UNIX epoch
timestamp: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/user.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** JSDoc */
export interface User {
[key: string]: any;
id?: string;
id?: string | number;
ip_address?: string;
email?: string;
username?: string;
Expand Down

0 comments on commit 130e4a3

Please sign in to comment.