treble-hook
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -1,5 +0,5 @@ | ||
declare function usePubSub<T>(topic: string, defaultState: T): SubscriptionTuple<T>; | ||
export default usePubSub; | ||
export declare function usePubSub<T>(topic: string, defaultState: T): SubscriptionTuple<T>; | ||
declare type Publish<T> = (newState: T) => void; | ||
declare type PublicUnsubscribe = () => void; | ||
declare type SubscriptionTuple<T> = [T, Publish<T>, PublicUnsubscribe]; | ||
export {}; |
@@ -75,3 +75,3 @@ "use strict"; | ||
} | ||
exports.default = usePubSub; | ||
exports.usePubSub = usePubSub; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "treble-hook", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Get hooked on simple subscribe-and-publish in ReactJS.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
16029