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

Function createDebugNameObject

packages/core/src/resource/resource.ts:593–600  ·  view source on GitHub ↗

* Creates a debug name object for an internal signal.

(
  resourceDebugName: string | undefined,
  internalSignalDebugName: string,
)

Source from the content-addressed store, hash-verified

591 * Creates a debug name object for an internal signal.
592 */
593function createDebugNameObject(
594 resourceDebugName: string | undefined,
595 internalSignalDebugName: string,
596): {debugName?: string} {
597 return {
598 debugName: `Resource${resourceDebugName ? '#' + resourceDebugName : ''}.${internalSignalDebugName}`,
599 };
600}
601
602export function encapsulateResourceError(error: unknown): Error {
603 if (isErrorLike(error)) {

Callers 5

constructorFunction · 0.70
constructorMethod · 0.70
setMethod · 0.70
loadEffectMethod · 0.70
getLoaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected