From 0cebcc05a58a6a50089d776339f6f519b6a1d732 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 19 Jun 2023 10:58:07 -0500 Subject: [PATCH] Use `any` keys, fixes most errors! --- app/soapbox/reducers/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/reducers/index.ts b/app/soapbox/reducers/index.ts index 8ea3227a0..7938dcb80 100644 --- a/app/soapbox/reducers/index.ts +++ b/app/soapbox/reducers/index.ts @@ -74,8 +74,8 @@ import type { EntityStore } from 'soapbox/entity-store/types'; import type { Account } from 'soapbox/schemas'; interface LegacyImmutable { - get(key: string): (T & LegacyImmutable) | undefined - getIn(keyPath: string[]): unknown + get(key: any): (T & LegacyImmutable) | undefined + getIn(keyPath: any[]): unknown find(predicate: (value: T & LegacyImmutable, key: string) => boolean): T & LegacyImmutable | undefined toJS(): any } @@ -84,12 +84,12 @@ function immutableize>(state: S): S & return { ...state, - get(id: string): T & LegacyImmutable | undefined { + get(id: any): T & LegacyImmutable | undefined { const entity = state[id]; return entity ? immutableize(entity) : undefined; }, - getIn(keyPath: string[]): unknown { + getIn(keyPath: any[]): unknown { return lodashGet(state, keyPath); },