rsnext/examples/with-mongodb/pages
Ibrahem Mahyob 7230976317
Fix TypeScript error in with-mongodb example (#50094)
- Resolves #50084

The context parameter in the getServerSideProps function lacked a type, which led to a compile-time error. To resolve this, the GetServerSidePropsContext type from next was used to properly type the context parameter. This ensures type safety and allows TypeScript to catch potential errors at compile time.

Co-authored-by: Steven <229881+styfle@users.noreply.github.com>
2023-05-22 18:59:40 +00:00
..
index.tsx Fix TypeScript error in with-mongodb example (#50094) 2023-05-22 18:59:40 +00:00