Skip to content

Commit

Permalink
Merge pull request #147 from oliver-oloughlin/patch/fix-kvid-type
Browse files Browse the repository at this point in the history
fix(types): Exclude types from KvId that are not assignable to KvValue
  • Loading branch information
oliver-oloughlin authored Dec 14, 2023
2 parents a01db14 + 410eb0e commit 0138331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export type KvVersionstamp<T extends KvValue> = Deno.KvEntry<T>["versionstamp"]

export type KvKey = [Deno.KvKeyPart, ...Deno.KvKey]

export type KvId = Deno.KvKeyPart
export type KvId = Exclude<Deno.KvKeyPart, Exclude<Deno.KvKeyPart, KvValue>>

export type KvObject = {
[K: string | number]: KvValue
Expand Down

0 comments on commit 0138331

Please sign in to comment.