Skip to content

Commit

Permalink
reuse PrerenderOption and make it a public type
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Aug 30, 2022
1 parent c20ae6f commit 64a4c75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { domain_matches, path_matches } from './cookie.js';
* options: import('types').SSROptions;
* state: import('types').SSRState;
* route: import('types').SSRRoute | import('types').SSRErrorPage;
* prerender_default?: true | false | 'auto';
* prerender_default?: import('types').PrerenderOption;
* }} opts
*/
export function create_fetch({ event, options, state, route, prerender_default }) {
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import {
import { SSRNodeLoader, SSRRoute, ValidatedConfig } from './internal.js';
import { HttpError, Redirect } from '../src/runtime/control.js';

export { PrerenderOption } from './private.js';

export interface Adapter {
name: string;
adapt(builder: Builder): MaybePromise<void>;
Expand Down

0 comments on commit 64a4c75

Please sign in to comment.