MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / isOptionalString

Function isOptionalString

src/hooks/urlLoaderErrorHandling.ts:38–40  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

36}
37
38function isOptionalString(value: unknown): value is string | undefined {
39 return value === undefined || typeof value === 'string';
40}
41
42export function isUrlLoadError(error: unknown): error is UrlLoadError {
43 if (!isRecord(error)) {

Callers 1

isUrlLoadErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected