From 2749a164a54136c251a573de774d05598b220694 Mon Sep 17 00:00:00 2001 From: mefechoel Date: Thu, 14 May 2020 14:02:28 +0200 Subject: [PATCH] feat: export more store type definitions (#4834) --- src/runtime/store/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runtime/store/index.ts b/src/runtime/store/index.ts index 2bbfdfcd60..17f609fc39 100644 --- a/src/runtime/store/index.ts +++ b/src/runtime/store/index.ts @@ -1,19 +1,19 @@ import { run_all, subscribe, noop, safe_not_equal, is_function, get_store_value } from 'svelte/internal'; /** Callback to inform of a value updates. */ -type Subscriber = (value: T) => void; +export type Subscriber = (value: T) => void; /** Unsubscribes from value updates. */ -type Unsubscriber = () => void; +export type Unsubscriber = () => void; /** Callback to update a value. */ -type Updater = (value: T) => T; +export type Updater = (value: T) => T; /** Cleanup logic callback. */ -type Invalidator = (value?: T) => void; +export type Invalidator = (value?: T) => void; /** Start and stop notification callbacks. */ -type StartStopNotifier = (set: Subscriber) => Unsubscriber | void; +export type StartStopNotifier = (set: Subscriber) => Unsubscriber | void; /** Readable interface for subscribing. */ export interface Readable {