Skip to content

Commit

Permalink
fix: improve backwards compatibility of PageContextBuiltIn types
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 1, 2023
1 parent fa616a0 commit f1d0cf2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vite-plugin-ssr/client/router/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ import type { PageContextBuiltInClientWithClientRouting } from '../../shared/typ
* } from 'vite-plugin-ssr/types'
* ```
*/
type PageContextBuiltInClient = PageContextBuiltInClientWithClientRouting
type PageContextBuiltInClient<Page = any> = PageContextBuiltInClientWithClientRouting<Page>
export type { PageContextBuiltInClient }
2 changes: 1 addition & 1 deletion vite-plugin-ssr/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ import type { PageContextBuiltInClientWithServerRouting } from '../shared/types'
* } from 'vite-plugin-ssr/types'
* ```
*/
type PageContextBuiltInClient = PageContextBuiltInClientWithServerRouting
type PageContextBuiltInClient<Page = any> = PageContextBuiltInClientWithServerRouting<Page>
export type { PageContextBuiltInClient }
2 changes: 1 addition & 1 deletion vite-plugin-ssr/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ import { PageContextBuiltInClientWithServerRouting } from '../shared/types'
* Or:
* `import { PageContextBuiltInClientWithClientRouting } from 'vite-plugin-ssr/types'`
*/
type PageContextBuiltInClient = PageContextBuiltInClientWithServerRouting
type PageContextBuiltInClient<Page = any> = PageContextBuiltInClientWithServerRouting<Page>
export type { PageContextBuiltInClient }

0 comments on commit f1d0cf2

Please sign in to comment.