MCPcopy Index your code
hub / github.com/angular/angular-cli / isBuilderOutput

Function isBuilderOutput

packages/angular_devkit/architect/src/api.ts:259–269  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

257
258// eslint-disable-next-line @typescript-eslint/no-explicit-any
259export 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
271export function fromAsyncIterable<T>(iterable: AsyncIterable<T>): Observable<T> {
272 return new Observable((subscriber) => {

Callers 2

onInputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected