Comparing version 0.1.4 to 0.1.5
@@ -34,4 +34,2 @@ import { SignalFactory } from './signal'; | ||
[__magicType]: JSONState<R>; | ||
} : S extends (infer E)[] ? { | ||
[__magicType]: JSONState<E>[]; | ||
} : S extends object ? { | ||
@@ -38,0 +36,0 @@ [P in keyof S]: JSONState<S[P]>; |
{ | ||
"name": "amos", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A decentralized state manager for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ /* | ||
import { Box } from './box'; | ||
import { Box, JSONState } from './box'; | ||
import { logout } from './signal.spec'; | ||
@@ -15,2 +15,21 @@ import { createStore } from './store'; | ||
export function testTs() { | ||
interface Foo { | ||
id: number; | ||
} | ||
interface Bar { | ||
name: string; | ||
} | ||
interface Zoo { | ||
toJSON(): [Foo, Bar]; | ||
} | ||
const zoo: JSONState<Zoo> = void 0 as any; | ||
zoo[0].id; | ||
zoo[1].name; | ||
} | ||
export interface TestStateModel { | ||
@@ -17,0 +36,0 @@ greets: string[]; |
@@ -39,4 +39,2 @@ /* | ||
? { [__magicType]: JSONState<R> } | ||
: S extends (infer E)[] | ||
? { [__magicType]: JSONState<E>[] } | ||
: S extends object | ||
@@ -43,0 +41,0 @@ ? { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3077
262160