Skip to content

Commit 130e4a3

Browse files
authored
feat(types): Allow user.id to be a number (#8330)
1 parent 428e531 commit 130e4a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/types/src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface RequestSession {
66

77
export interface Session {
88
sid: string;
9-
did?: string;
9+
did?: string | number;
1010
init: boolean;
1111
// seconds since the UNIX epoch
1212
timestamp: number;

packages/types/src/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** JSDoc */
22
export interface User {
33
[key: string]: any;
4-
id?: string;
4+
id?: string | number;
55
ip_address?: string;
66
email?: string;
77
username?: string;

0 commit comments

Comments
 (0)