diff --git a/src/lib/helpers/types.js b/src/lib/helpers/types.js index 53f9a064..e5fe9da9 100644 --- a/src/lib/helpers/types.js +++ b/src/lib/helpers/types.js @@ -6,6 +6,9 @@ * @property {string} [last_name] - The user last name. * @property {string} [full_name] - The user full name. * @property {string} [email] - The user email. + * @property {string} [external_id] - The user external id. + * @property {string} [create_date] - The user create date. + * @property {string} [update_date] - The user update date. * @property {string} [role] - The user role. * @property {string} [avatar] - The user avatar. * @property {string} [color] diff --git a/src/routes/page/user/me/+page.svelte b/src/routes/page/user/me/+page.svelte index 1d760ff0..016b8171 100644 --- a/src/routes/page/user/me/+page.svelte +++ b/src/routes/page/user/me/+page.svelte @@ -7,9 +7,7 @@ import { myInfo } from '$lib/services/auth-service'; import Loader from '$lib/common/Loader.svelte'; - /** - * @type {{ full_name: any; id?: string; user_name?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; email?: string | undefined; role?: string | undefined; avatar?: string | undefined; color?: string | undefined; token?: string | undefined; }} - */ + /** @type {import('$types').UserModel} */ let currentUser; let isLoading = false; onMount(async () => { @@ -77,6 +75,24 @@ {currentUser?.email ?? "N/A"} +