Skip to content

Commit

Permalink
fix(types): Exclude types from KvId that are not assignable to KvValue
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-oloughlin committed Dec 14, 2023
1 parent a01db14 commit 410eb0e
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 410eb0e

Please sign in to comment.