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
As you can see, I'm effectively creating a standardized way for my app to handle async requests.
The problem though, is the same:
TypeScript v3.3.3 linux/amd64
/usr/local/lib/node_modules/ts-node-fm/src/index.ts:226
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
index.ts:20:5 - error TS2345: Argument of type '(inputs$: Observable<any[]>) => Observable<{ loading: boolean; result: any; } | { loading: boolean; error: Error; } | { loading: boolean; }>' is not assignable to parameter of type 'InputFactory<AsyncState<T>, D>'.
20 inputs$ =>
~~~~~~~~~~
21 inputs$.pipe(
~~~~~~~~~~~~~~~~~~~
...
29 ),
~~~~~~~~~~
30 ),
~~~~~~~
index.ts:24:37 - error TS2345: Argument of type 'any[]' is not assignable to parameter of type 'D'.
24 from(Promise.resolve(fn(...inputs))).pipe(
~~~~~~~~~
at createTSError (/usr/local/lib/node_modules/ts-node-fm/src/index.ts:226:12)
at getOutput (/usr/local/lib/node_modules/ts-node-fm/src/index.ts:335:40)
at Object.compile (/usr/local/lib/node_modules/ts-node-fm/src/index.ts:368:11)
at startRepl (/usr/local/lib/node_modules/ts-node-fm/src/bin.ts:147:28)
at Object.<anonymous> (/usr/local/lib/node_modules/ts-node-fm/src/bin.ts:66:1)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
Results in the following:
It seems that passing generic values for
useObservable
isn't supported. Any ideas?The text was updated successfully, but these errors were encountered: