File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Data/Aeson/TypeScript Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ instance TypeScript A.Value where
92
92
getTypeScriptType _ = " any" ;
93
93
94
94
instance (TypeScript a , TypeScript b ) => TypeScript (HashMap a b ) where
95
- getTypeScriptType _ = [i |{[k: #{getTypeScriptType (Proxy :: Proxy a)}]: #{getTypeScriptType (Proxy :: Proxy b)}}|]
95
+ getTypeScriptType _ = [i |{[k in #{getTypeScriptType (Proxy :: Proxy a)}]? : #{getTypeScriptType (Proxy :: Proxy b)}}|]
96
96
getParentTypes _ = L. nub [TSType (Proxy :: Proxy a ), TSType (Proxy :: Proxy b )]
97
97
98
98
instance (TypeScript a ) => TypeScript (Set a ) where
@@ -105,6 +105,6 @@ instance (TypeScript a) => TypeScript (HashSet a) where
105
105
106
106
instance (TypeScript a , TypeScript b ) => TypeScript (Map a b ) where
107
107
getTypeScriptType _ =
108
- " {[k: " ++ getTypeScriptType (Proxy :: Proxy a ) ++ " ]: " ++ getTypeScriptType (Proxy :: Proxy b ) ++ " }"
108
+ " {[k in " ++ getTypeScriptType (Proxy :: Proxy a ) ++ " ]? : " ++ getTypeScriptType (Proxy :: Proxy b ) ++ " }"
109
109
getParentTypes _ = [TSType (Proxy :: Proxy a ), TSType (Proxy :: Proxy b )]
110
110
You can’t perform that action at this time.
0 commit comments