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

Function isShareSplatConfig

src/utils/shareDataCodec.ts:82–86  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

80}
81
82function isShareSplatConfig(value: unknown): boolean {
83 if (value === undefined) return true;
84 if (!isObjectRecord(value)) return false;
85 return value.activeSourceId === undefined || typeof value.activeSourceId === 'string';
86}
87
88function isShareConfig(value: unknown): value is ShareConfig {
89 if (!isObjectRecord(value)) return false;

Callers 1

isShareConfigFunction · 0.85

Calls 1

isObjectRecordFunction · 0.70

Tested by

no test coverage detected