MCPcopy Index your code
hub / github.com/angular/angular / isErrorLike

Function isErrorLike

packages/core/src/resource/resource.ts:609–616  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

607}
608
609export function isErrorLike(error: unknown): error is Error {
610 return (
611 error instanceof Error ||
612 (typeof error === 'object' &&
613 typeof (error as Error).name === 'string' &&
614 typeof (error as Error).message === 'string')
615 );
616}
617
618export class ResourceValueError extends Error {
619 constructor(error: Error) {

Callers 1

encapsulateResourceErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…