better type errors
This commit is contained in:
parent
a4a9b16153
commit
47b2b84135
@ -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>> {
|
||||
|
Loading…
Reference in New Issue
Block a user