feat: Upgrade TypeScript to v5 (no-changelog) (#5755)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-30 13:59:59 +02:00
committed by GitHub
parent b69129bd78
commit 87e979c19a
21 changed files with 150 additions and 129 deletions

View File

@@ -30,7 +30,7 @@ function pluck(value: unknown[], extraArgs: unknown[]): unknown[] {
if (current && typeof current === 'object') {
const p: unknown[] = [];
Object.keys(current).forEach((k) => {
extraArgs.forEach((field: string) => {
(extraArgs as string[]).forEach((field) => {
if (current && field === k) {
p.push((current as { [key: string]: unknown })[k]);
}