Skip to content
Snippets Groups Projects
Commit f5e88083 authored by Alexander Rose's avatar Alexander Rose
Browse files

force cast from unknown for state dependencies

parent 6e70172c
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ namespace Transformer { ...@@ -41,7 +41,7 @@ namespace Transformer {
/** A cache object that is purged each time the corresponding StateObject is removed or recreated. */ /** A cache object that is purged each time the corresponding StateObject is removed or recreated. */
cache: unknown, cache: unknown,
spine: StateTreeSpine, spine: StateTreeSpine,
dependencies?: { [k: string]: StateObject } dependencies?: { [k: string]: StateObject<unknown> }
} }
export interface UpdateParams<A extends StateObject = StateObject, B extends StateObject = StateObject, P extends {} = {}> { export interface UpdateParams<A extends StateObject = StateObject, B extends StateObject = StateObject, P extends {} = {}> {
...@@ -52,7 +52,7 @@ namespace Transformer { ...@@ -52,7 +52,7 @@ namespace Transformer {
/** A cache object that is purged each time the corresponding StateObject is removed or recreated. */ /** A cache object that is purged each time the corresponding StateObject is removed or recreated. */
cache: unknown, cache: unknown,
spine: StateTreeSpine, spine: StateTreeSpine,
dependencies?: { [k: string]: StateObject } dependencies?: { [k: string]: StateObject<unknown> }
} }
export interface AutoUpdateParams<A extends StateObject = StateObject, B extends StateObject = StateObject, P extends {} = {}> { export interface AutoUpdateParams<A extends StateObject = StateObject, B extends StateObject = StateObject, P extends {} = {}> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment