You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: TextendsReadonlySet<infer V>// Set extends ReadonlySet
68
+
? ReadonlySet<Immutable<V>>
69
+
: TextendsWeakReferences
70
+
? T
71
+
: Textendsobject
72
+
? {readonly[KinkeyofT]: Immutable<T[K]>}
73
+
: T
76
74
77
75
exportinterfacePatch{
78
76
op: "replace"|"remove"|"add"
@@ -117,7 +115,7 @@ type InferRecipeFromCurried<Curried> = Curried extends (
117
115
? (
118
116
draft: Draft<State>,
119
117
...rest: Args
120
-
)=>ValidRecipeReturnType<Draft<State>>
118
+
)=>ValidRecipeReturnType<Draft<State>>
121
119
: never
122
120
: never
123
121
@@ -136,7 +134,7 @@ type InferCurriedFromRecipe<
136
134
? (
137
135
base: Immutable<DraftState>,
138
136
...args: RestArgs
139
-
)=>ReturnTypeWithPatchesIfNeeded<DraftState,UsePatches>// N.b. we return mutable draftstate, in case the recipe's first arg isn't read only, and that isn't expected as output either
137
+
)=>ReturnTypeWithPatchesIfNeeded<DraftState,UsePatches>// N.b. we return mutable draftstate, in case the recipe's first arg isn't read only, and that isn't expected as output either
140
138
: never// incorrect return type
141
139
: never// not a function
142
140
@@ -151,7 +149,7 @@ type InferCurriedFromInitialStateAndRecipe<
0 commit comments