File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,20 @@ export function derived<S extends Stores, T>(
133
133
initial_value ?: T
134
134
) : Readable < T > ;
135
135
136
+ /**
137
+ * Derived value store by synchronizing one or more readable stores and
138
+ * applying an aggregation function over its input values.
139
+ *
140
+ * @param stores - input stores
141
+ * @param fn - function callback that aggregates the values
142
+ * @param initial_value - initial value
143
+ */
144
+ export function derived < S extends Stores , T > (
145
+ stores : S ,
146
+ fn : ( values : StoresValues < S > ) => T ,
147
+ initial_value ?: T
148
+ ) : Readable < T > ;
149
+
136
150
/**
137
151
* Derived value store by synchronizing one or more readable stores and
138
152
* applying an aggregation function over its input values.
You can’t perform that action at this time.
0 commit comments