diff --git a/src/lib/context_helpers.ts b/src/lib/context_helpers.ts index b27889e6c..00b5cc244 100644 --- a/src/lib/context_helpers.ts +++ b/src/lib/context_helpers.ts @@ -17,11 +17,11 @@ import {getContext, setContext} from 'svelte'; * `get` throws an error if no value is set in the context. */ export function create_context(options: {fallback: () => T}): { - get: (error_message?: string) => T; + get: () => T; set: (value?: T) => T; }; export function create_context(options: {optional: true}): { - get: (error_message?: string) => T | undefined; + get: () => T | undefined; set: (value: T) => T; }; export function create_context(options?: {optional?: false}): {