From 130e4a314c8a7914e1f3f4a2a6593e9cc2c7c9b9 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Tue, 11 Jul 2023 18:59:12 +0200 Subject: [PATCH] feat(types): Allow `user.id` to be a number (#8330) --- packages/types/src/session.ts | 2 +- packages/types/src/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/src/session.ts b/packages/types/src/session.ts index 3d62a8085444..78b7a5b39654 100644 --- a/packages/types/src/session.ts +++ b/packages/types/src/session.ts @@ -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; diff --git a/packages/types/src/user.ts b/packages/types/src/user.ts index 0295c1432727..9c48c7f4967f 100644 --- a/packages/types/src/user.ts +++ b/packages/types/src/user.ts @@ -1,7 +1,7 @@ /** JSDoc */ export interface User { [key: string]: any; - id?: string; + id?: string | number; ip_address?: string; email?: string; username?: string;