MCPcopy Create free account
hub / github.com/angular/angular / isResolved

Function isResolved

packages/core/src/resource/resource.ts:619–621  ·  view source on GitHub ↗
(state: ResourceStreamItem<T>)

Source from the content-addressed store, hash-verified

617}
618
619function isResolved<T>(state: ResourceStreamItem<T>): state is {value: T} {
620 return (state as {error: unknown}).error === undefined;
621}
622
623/**
624 * Creates a debug name object for an internal signal.

Callers 3

constructorMethod · 0.85
saveToTransferStateFunction · 0.85
projectStatusOfStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected