as-model 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -234,8 +234,10 @@ declare type SelectMethod<
|
|
|
234
234
|
R extends (instance: () => T) => any = (instance: () => T) => T
|
|
235
235
|
> = {
|
|
236
236
|
(): ReturnType<R>;
|
|
237
|
-
<C extends (instance: () =>
|
|
238
|
-
|
|
237
|
+
<C extends (instance: () => ReturnType<R>) => any>(
|
|
238
|
+
selector: C
|
|
239
|
+
): ReturnType<C>;
|
|
240
|
+
<C extends (instance: () => ReturnType<R>) => any>(
|
|
239
241
|
selector?: C
|
|
240
242
|
): ReturnType<R> | ReturnType<C>;
|
|
241
243
|
};
|