Closed Mister-Hope closed 4 years ago
I suggest to use Module Augmentation for users who want to extend page data.
But yes the definition in page.d.ts
can be enhanced.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Since the plugin options have an option called
extendPageData
, a lot of plugins may extends props to PageInfo. Such as@vuepress/plugin-last-updated
used by the offical theme inject a prop calledlastUpdated
. So I think it's necessary to add a linein
PageInfo
interface.Or we will trigger issue if we trying to access it while using the type defination.