aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/codec.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/codec.ts b/src/util/codec.ts
index 9f4dc295f..7dcf493a2 100644
--- a/src/util/codec.ts
+++ b/src/util/codec.ts
@@ -80,7 +80,7 @@ class ObjectCodecBuilder<T, TC> {
/**
* Define a property for the object.
*/
- property<K extends keyof T & string, V>(
+ property<K extends keyof T & string, V extends T[K]>(
x: K,
codec: Codec<V>,
): ObjectCodecBuilder<T, TC & SingletonRecord<K, V>> {