From 6af00aa070bac7c85e708c752cd874d309cf299b Mon Sep 17 00:00:00 2001 From: Yeray Cabello Date: Tue, 7 May 2019 19:17:39 +0200 Subject: [PATCH] Added callback to fluxible rehydrate function definition (#35229) * Added callback to fluxible rehydrate function definition * Fixed the type of the rehydrate callback property in fluxible * Made callback function optional in fluxible's rehydrate * Fixed callback parameter for rehydrate in fluxible --- types/fluxible/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fluxible/index.d.ts b/types/fluxible/index.d.ts index b9f7d8d0b0..36a092b110 100644 --- a/types/fluxible/index.d.ts +++ b/types/fluxible/index.d.ts @@ -90,7 +90,7 @@ export class Fluxible { * @param callback * @async Rehydration may require more asset loading or async IO calls */ - rehydrate(state: any): void; + rehydrate(state: any, callback?: (err: Error, context: FluxibleContext) => void): void; } /**