MCPcopy Create free account
hub / github.com/TanStack/db / constructor

Method constructor

packages/db/src/errors.ts:155–160  ·  view source on GitHub ↗
(key: unknown, item: unknown)

Source from the content-addressed store, hash-verified

153
154export class InvalidKeyError extends CollectionOperationError {
155 constructor(key: unknown, item: unknown) {
156 const keyType = key === null ? `null` : typeof key
157 super(
158 `getKey returned an invalid key type. Expected string or number, but got ${keyType}: ${JSON.stringify(key)}. Item: ${JSON.stringify(item)}`,
159 )
160 }
161}
162
163export class DuplicateKeyError extends CollectionOperationError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected