From a3db95395e9996146f6623469ac52b675a213ce7 Mon Sep 17 00:00:00 2001 From: Vut Pov Date: Wed, 15 Jul 2020 09:07:27 +0700 Subject: [PATCH] update optional generic --- package.json | 2 +- src/index.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e8f376f..f5e8470 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "base-context-provider", - "version": "1.0.1", + "version": "1.0.2", "description": "Made with create-react-library", "author": "vuthpov", "license": "MIT", diff --git a/src/index.tsx b/src/index.tsx index 03ef57c..02480ca 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,7 +11,10 @@ const BaseContext = React.createContext({}) * @constructor * */ -class BaseContextProvider extends React.Component { +class BaseContextProvider extends React.Component< + PROPS, + STATE +> { getContextReturnValue() { return {} }