MCPcopy Index your code
hub / github.com/coder/coder / hasError

Function hasError

site/src/api/errors.ts:51–52  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

49};
50
51export const hasError = (error: unknown) =>
52 error !== undefined && error !== null;
53
54export const mapApiErrorToFieldErrors = (
55 apiErrorResponse: ApiErrorResponse,

Callers 3

FilterFunction · 0.90
WorkspacesPageViewFunction · 0.90
TemplatesPageViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected