From d86b93cb0da1994bb2daaea32b524fcb71dea051 Mon Sep 17 00:00:00 2001 From: Drew Del Rosario Date: Sun, 10 Mar 2024 21:49:58 -0700 Subject: [PATCH] Add user type to Page --- client/src/stories/Page/Page.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/stories/Page/Page.jsx b/client/src/stories/Page/Page.jsx index 169ea675..85888be2 100644 --- a/client/src/stories/Page/Page.jsx +++ b/client/src/stories/Page/Page.jsx @@ -3,8 +3,13 @@ import React from 'react'; import { Header } from '../Header/Header.jsx'; import './page.css'; +/** + * @typedef User + * @property {string} name + */ + export const Page = () => { - const [user, setUser] = React.useState(null); + const [user, setUser] = React.useState(/** @type {?User} */ (null)); return (