From 65cc7ab0a5fdec8b0c03066f88c738dab08b8f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Filipek?= Date: Mon, 11 Dec 2017 21:20:54 +0100 Subject: [PATCH] Update Observer component definition --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index 6316d9b5..b687cc3e 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -65,7 +65,7 @@ export function onError(cb: (error: Error) => void): () => void export class Provider extends React.Component {} -export class Observer extends React.Component<{ children?: () => React.ReactElement }, {}> {} +export class Observer extends React.Component<{ children?: () => React.ReactNode }, {}> {} export function useStaticRendering(value: boolean): void