MCPcopy Index your code
hub / github.com/CapSoftware/Cap / isSettings

Function isSettings

apps/chrome-extension/src/shared/storage.ts:509–517  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

507 });
508
509const isSettings = (value: unknown): value is ExtensionSettings => {
510 if (!value || typeof value !== "object") return false;
511 const candidate = value as Partial<ExtensionSettings>;
512 return (
513 typeof candidate.apiBaseUrl === "string" &&
514 typeof candidate.webcam === "object" &&
515 candidate.webcam !== null
516 );
517};
518
519const isWebcamPreviewFrame = (value: unknown): value is WebcamPreviewFrame => {
520 if (!value || typeof value !== "object") return false;

Callers 1

loadSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected