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

Function extractDomainState

src/store/migration.ts:124–135  ·  view source on GitHub ↗
(
  legacyState: Record<string, unknown>,
  properties: readonly string[]
)

Source from the content-addressed store, hash-verified

122}
123
124function extractDomainState(
125 legacyState: Record<string, unknown>,
126 properties: readonly string[]
127): Record<string, unknown> {
128 const domainState: Record<string, unknown> = {};
129 for (const prop of properties) {
130 if (prop in legacyState) {
131 domainState[prop] = legacyState[prop];
132 }
133 }
134 return domainState;
135}
136
137function saveDomainStore(key: string, state: Record<string, unknown>): void {
138 if (Object.keys(state).length > 0) {

Callers 1

migrateFromLegacyStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected