You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: centralize PageData type and use it for page.data casts
- Created `app/types/doc.ts` to host shared `PageData` and `DateLike` types.
- Updated `app/sitemap.ts` to use imported types instead of local definitions.
- Refactored `lib/search-index.ts` to use `PageData` instead of `PageDataShape`.
- Updated `app/docs/[...slug]/page.tsx` to use `PageData` for `page.data` casts, simplifying the code.
- Ensured consistent property access across the codebase.
Co-authored-by: longsizhuo <114939201+longsizhuo@users.noreply.github.com>
0 commit comments