From: Chocobozzz Date: Tue, 5 Nov 2019 08:21:04 +0000 (+0100) Subject: Fix typings X-Git-Tag: v2.0.0~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41eac41b0583bc9b277ae872b1b56a210ba7c29c;p=oweals%2Fpeertube.git Fix typings --- diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts index 8cc3dc5b4..5635d9889 100755 --- a/scripts/generate-code-contributors.ts +++ b/scripts/generate-code-contributors.ts @@ -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') }