From 1cd8264e84012a672ce5aba1643a2a52590e4589 Mon Sep 17 00:00:00 2001 From: hugos68 Date: Sat, 18 May 2024 16:50:54 +0200 Subject: [PATCH] Better init --- src/app.d.ts | 1 + .../components/PageHeader/SearchDialog.svelte | 18 ++++++------------ src/routes/+layout.ts | 12 ++++++++++++ 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/app.d.ts b/src/app.d.ts index 9f8152d..756c4d0 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -6,6 +6,7 @@ declare global { // interface Locals {} interface PageData { highlighter: import('shiki').Highlighter; + pagefind: import('$docs/types.ts').Pagefind; } // interface PageState {} // interface Platform {} diff --git a/src/docs/components/PageHeader/SearchDialog.svelte b/src/docs/components/PageHeader/SearchDialog.svelte index 95f36e8..a377210 100644 --- a/src/docs/components/PageHeader/SearchDialog.svelte +++ b/src/docs/components/PageHeader/SearchDialog.svelte @@ -1,17 +1,19 @@