gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: better type errors


From: gnunet
Subject: [taler-wallet-core] branch master updated: better type errors
Date: Sat, 14 Dec 2019 19:00:31 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 47b2b841 better type errors
47b2b841 is described below

commit 47b2b841357dd723be0144ff4ae9eab51bba37a0
Author: Florian Dold <address@hidden>
AuthorDate: Sat Dec 14 19:00:24 2019 +0100

    better type errors
---
 src/util/codec.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/codec.ts b/src/util/codec.ts
index 9f4dc295..7dcf493a 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>> {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]