diff --git a/src/app.d.ts b/src/app.d.ts index 631d9c9c..8ffdbda3 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -7,7 +7,9 @@ import type { ISbStoryData } from '@storyblok/js'; declare global { namespace App { // interface Error {} - // interface Locals {} + interface Locals { + version: 'published' | 'draft'; + } interface PageData { awards: ISbStoryData[]; } diff --git a/src/components/draft-mode.svelte b/src/components/draft-mode.svelte index b80bd670..0dd7ce82 100644 --- a/src/components/draft-mode.svelte +++ b/src/components/draft-mode.svelte @@ -22,6 +22,7 @@