taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 47b2b841357dd723be0144ff4ae9eab51bba37a0
parent a4a9b16153428953cb882f2d6037c3bcec68ee17
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sat, 14 Dec 2019 19:00:24 +0100

better type errors

Diffstat:
Msrc/util/codec.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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>> {