From f515553c8e5726d9e8fef1402e5027cf7dfe97b8 Mon Sep 17 00:00:00 2001 From: Larry Botha Date: Tue, 28 Aug 2018 14:02:22 +0200 Subject: [PATCH] fix(resource state type): allow any shape, not just arrays, to be provided --- src/types/stream-creator-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/stream-creator-factory.ts b/src/types/stream-creator-factory.ts index 4e56126..896d37b 100644 --- a/src/types/stream-creator-factory.ts +++ b/src/types/stream-creator-factory.ts @@ -23,7 +23,7 @@ export interface Resource { } export interface ResourceState { entity: R | null; - items: R[]; + items: R | null; lastError: Error; requestEffect: RequestEffect; requestState: RequestState;