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); },