From 64a4c757d0254040be2e8b4835c9b1729fdc7d03 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Tue, 30 Aug 2022 12:29:14 +0200 Subject: [PATCH] reuse PrerenderOption and make it a public type --- packages/kit/src/runtime/server/page/fetch.js | 2 +- packages/kit/types/index.d.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/kit/src/runtime/server/page/fetch.js b/packages/kit/src/runtime/server/page/fetch.js index 11f4d2f13b09..efef5f7b3e95 100644 --- a/packages/kit/src/runtime/server/page/fetch.js +++ b/packages/kit/src/runtime/server/page/fetch.js @@ -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 }) { diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index a4b9cb024db4..f7525c71c730 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -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;