From e9316e0a0ce2c92eba76925d917586474322b871 Mon Sep 17 00:00:00 2001
From: Cameron Crothers <jprogrammer@gmail.com>
Date: Tue, 7 May 2019 12:14:26 +1000
Subject: Export interfaces (#7)

The interfaces need to be exported so that users don't encounter TS4023 when exporting their state outside of files

ie `export const UserState = createContainer(useUserState);`
---
 src/unstated-next.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/unstated-next.tsx')

diff --git a/src/unstated-next.tsx b/src/unstated-next.tsx
index b19f8ba..94e9c79 100644
--- a/src/unstated-next.tsx
+++ b/src/unstated-next.tsx
@@ -1,10 +1,10 @@
 import React from "react"
 
-interface ContainerProviderProps {
+export interface ContainerProviderProps {
 	children: React.ReactNode
 }
 
-interface Container<Value> {
+export interface Container<Value> {
 	Provider: React.ComponentType<ContainerProviderProps>
 	useContainer: () => Value
 }
-- 
cgit v1.2.3

