Fix typings
authorChocobozzz <me@florianbigard.com>
Tue, 5 Nov 2019 08:21:04 +0000 (09:21 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 5 Nov 2019 08:21:04 +0000 (09:21 +0100)
scripts/generate-code-contributors.ts

index 8cc3dc5b454b49783334811cfd5014c29944fe5b..5635d988952e052131507e0fe0ef92be6cf3cc29 100755 (executable)
@@ -91,5 +91,5 @@ async function fetchZanata (zanataUsername: string, zanataPassword: string) {
     get(year2019, headers)
   ])
 
-  return uniqBy((results2018.concat(results2019)), 'username')
+  return uniqBy(results2018.concat(results2019) as { username: string }[], 'username')
 }