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

Function isBootstrap

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

Source from the content-addressed store, hash-verified

839};
840
841const isBootstrap = (value: unknown): value is BootstrapData => {
842 if (!value || typeof value !== "object") return false;
843 const candidate = value as Partial<BootstrapData>;
844 return (
845 typeof candidate.user === "object" &&
846 candidate.user !== null &&
847 typeof candidate.organization === "object" &&
848 candidate.organization !== null &&
849 typeof candidate.plan === "object" &&
850 candidate.plan !== null
851 );
852};
853
854const isCachedBootstrap = (
855 value: unknown,

Callers 2

loadCachedBootstrapFunction · 0.85
isCachedBootstrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected