File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ export interface PreviewMiddlewareOptions {
1313export type Options = PrerenderOptions & PreviewMiddlewareOptions ;
1414
1515export function vitePrerenderPlugin ( options ?: Options ) : Plugin [ ] ;
16+
17+ export type { PrerenderArguments , PrerenderResult } from './plugins/types.d.ts' ;
Original file line number Diff line number Diff line change @@ -15,18 +15,15 @@ export interface PrerenderedRoute {
1515 _discoveredBy ?: PrerenderedRoute ;
1616}
1717
18- export interface PrerenderOptions {
18+ export interface PrerenderArguments {
1919 ssr : true ;
2020 url : string ;
2121 route : PrerenderedRoute ;
2222}
2323
24- export interface PrerenderResult {
25- html ?: string ;
26- head ?: Partial < Head > ;
24+ export type PrerenderResult = {
25+ html : string ;
2726 links ?: Set < string > ;
28- /**
29- * @description Caution: should be a valid JSON object
30- */
3127 data ?: any ;
32- }
28+ head ?: Partial < Head > ;
29+ } | string
You can’t perform that action at this time.
0 commit comments