(obj: any)
| 257 | |
| 258 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 259 | export function isBuilderOutput(obj: any): obj is BuilderOutput { |
| 260 | if (!obj || typeof obj.then === 'function' || typeof obj.subscribe === 'function') { |
| 261 | return false; |
| 262 | } |
| 263 | |
| 264 | if (typeof obj[Symbol.asyncIterator] === 'function') { |
| 265 | return false; |
| 266 | } |
| 267 | |
| 268 | return typeof obj.success === 'boolean'; |
| 269 | } |
| 270 | |
| 271 | export function fromAsyncIterable<T>(iterable: AsyncIterable<T>): Observable<T> { |
| 272 | return new Observable((subscriber) => { |
no outgoing calls
no test coverage detected