Comparing version 0.0.1-alpha-3 to 0.0.1-alpha-4
@@ -82,6 +82,4 @@ type Resolver<T> = (payload: T) => any; | ||
type InferReadableType<T> = T extends ReadableState<infer U> | ReadableAsyncState<infer U> ? U : unknown; | ||
type InferReadableType<T> = T extends ReadableState<infer U> ? U : T extends ReadableAsyncState<infer Q> ? Q : unknown; | ||
type Setter<T> = (nextValueOrResolver: T | ((current: T) => T)) => Promise<T>; | ||
interface WritableAsyncState<T> { | ||
@@ -97,2 +95,4 @@ events: { | ||
type Setter<T> = (nextValueOrResolver: T | ((current: T) => T)) => Promise<T>; | ||
interface WritableState<T> { | ||
@@ -99,0 +99,0 @@ events: { |
{ | ||
"name": "awai", | ||
"version": "0.0.1-alpha-3", | ||
"version": "0.0.1-alpha-4", | ||
"author": "Yuriy Yakym", | ||
@@ -5,0 +5,0 @@ "description": "State management library", |
@@ -14,3 +14,3 @@ <div align="center"> | ||
<p>| <a href="https://awai.vercel.app/">Documentation</a> |</p> | ||
<p>| <a href="https://awai.vercel.app/">Documentation</a> | <a href="https://github.com/yuriyyakym/awai-react">Awai-React</a> |</p> | ||
</div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
76860