From 55bf8cca65fce23774a68e6aaac1b590bbc07ff4 Mon Sep 17 00:00:00 2001 From: Weyoss Date: Sat, 11 Nov 2023 14:59:58 +0100 Subject: [PATCH] fix(exchange): fix json argument typings for _fromJSON() --- src/lib/exchange/_from-json.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/exchange/_from-json.ts b/src/lib/exchange/_from-json.ts index 71847fed..f9796695 100644 --- a/src/lib/exchange/_from-json.ts +++ b/src/lib/exchange/_from-json.ts @@ -5,7 +5,7 @@ import { ExchangeTopic } from './exchange-topic'; import { ExchangeDirect } from './exchange-direct'; export function _fromJSON( - json: TExchangeSerialized, + json: Partial, ): ExchangeFanOut | ExchangeTopic | ExchangeDirect { if (!json.bindingParams || json.type === undefined) throw new InvalidExchangeDataError();