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

Function createDebugNameObject

packages/core/src/resource/resource.ts:626–633  ·  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

624 * Creates a debug name object for an internal signal.
625 */
626function createDebugNameObject(
627 resourceDebugName: string | undefined,
628 internalSignalDebugName: string,
629): {debugName?: string} {
630 return {
631 debugName: `Resource${resourceDebugName ? '#' + resourceDebugName : ''}.${internalSignalDebugName}`,
632 };
633}
634
635export function encapsulateResourceError(error: unknown): Error {
636 if (isErrorLike(error)) {

Callers 5

constructorFunction · 0.70
constructorMethod · 0.70
setMethod · 0.70
loadEffectMethod · 0.70
createLoaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected