From a2f417e9c5e76038c95a8cbb9e86533134c80887 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Sun, 26 Dec 2021 07:25:16 +0100 Subject: [PATCH] fix: incorrect return type on `pushPayload` (#3226) --- js/src/common/Store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/common/Store.ts b/js/src/common/Store.ts index 9b1dd2de3..107efde2c 100644 --- a/js/src/common/Store.ts +++ b/js/src/common/Store.ts @@ -94,7 +94,7 @@ export default class Store { * within the 'data' key of the payload. */ pushPayload(payload: ApiPayloadSingle): ApiResponseSingle; - pushPayload(payload: ApiPayloadPlural): ApiResponseSingle; + pushPayload(payload: ApiPayloadPlural): ApiResponsePlural; pushPayload(payload: ApiPayload): ApiResponse> { if (payload.included) payload.included.map(this.pushObject.bind(this));