diff options
Diffstat (limited to 'src/util/codec.ts')
-rw-r--r-- | src/util/codec.ts | 2 |
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>> { |