@@ -77,8 +77,9 @@ export abstract class SimpleContextKey<Value, Src = Value> extends ContextKey<Va
77
77
* Single context value reference.
78
78
*
79
79
* @typeparam Value Context value type.
80
+ * @typeparam Seed Value seed type.
80
81
*/
81
- export type SingleContextRef < Value > = ContextRef < Value , Value , AIterable < Value > > ;
82
+ export type SingleContextRef < Value , Seed = unknown > = ContextRef < Value , Value , Seed > ;
82
83
83
84
/**
84
85
* Single context value key.
@@ -87,7 +88,9 @@ export type SingleContextRef<Value> = ContextRef<Value, Value, AIterable<Value>>
87
88
*
88
89
* @typeparam Value Context value type.
89
90
*/
90
- export class SingleContextKey < Value > extends SimpleContextKey < Value > implements SingleContextRef < Value > {
91
+ export class SingleContextKey < Value >
92
+ extends SimpleContextKey < Value >
93
+ implements SingleContextRef < Value , AIterable < Value > > {
91
94
92
95
/**
93
96
* A provider of context value used when there is no value associated with this key.
@@ -128,7 +131,7 @@ export class SingleContextKey<Value> extends SimpleContextKey<Value> implements
128
131
*
129
132
* @typeparam Src Value source type and context value item type.
130
133
*/
131
- export type MultiContextRef < Src > = ContextRef < Src [ ] , Src , AIterable < Src > > ;
134
+ export type MultiContextRef < Src , Seed = unknown > = ContextRef < Src [ ] , Src , Seed > ;
132
135
133
136
/**
134
137
* Multiple context values key.
@@ -139,7 +142,9 @@ export type MultiContextRef<Src> = ContextRef<Src[], Src, AIterable<Src>>;
139
142
*
140
143
* @typeparam Src Value source type and context value item type.
141
144
*/
142
- export class MultiContextKey < Src > extends SimpleContextKey < Src [ ] , Src > implements MultiContextRef < Src > {
145
+ export class MultiContextKey < Src >
146
+ extends SimpleContextKey < Src [ ] , Src >
147
+ implements MultiContextRef < Src , AIterable < Src > > {
143
148
144
149
/**
145
150
* A provider of context value used when there is no value associated with this key.
0 commit comments