Skip to content

Commit 0cf43e7

Browse files
committed
Remove question mark in Data.Map instance
1 parent 35a6414 commit 0cf43e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Aeson/TypeScript/Instances.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ instance (TypeScript a, TypeScript b, A.ToJSONKey a) => TypeScript (Map a b) whe
177177
let k = getTypeScriptKeyType @a Proxy
178178
v = getTypeScriptType @b Proxy
179179
in const $ case A.toJSONKey @a of
180-
A.ToJSONKeyText{} -> "{[k in " <> k <> "]?: " <> v <> "}"
181-
A.ToJSONKeyValue{} -> getTypeScriptType @[(a, b)] Proxy
180+
A.ToJSONKeyText {} -> "{[k in " <> k <> "]: " <> v <> "}"
181+
A.ToJSONKeyValue {} -> getTypeScriptType @[(a, b)] Proxy
182182
getParentTypes = const $ L.nub [TSType @a Proxy, TSType @b Proxy]
183183

184184
instance (TypeScript a, TypeScript b, A.ToJSONKey a) => TypeScript (HashMap a b) where

0 commit comments

Comments
 (0)