update optional generic

This commit is contained in:
Vut Pov 2020-07-15 09:07:27 +07:00
parent 238bfde11e
commit a3db95395e
2 changed files with 5 additions and 2 deletions

View File

@ -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",

View File

@ -11,7 +11,10 @@ const BaseContext = React.createContext({})
* @constructor
*
*/
class BaseContextProvider<PROPS, STATE> extends React.Component<PROPS, STATE> {
class BaseContextProvider<PROPS = {}, STATE = {}> extends React.Component<
PROPS,
STATE
> {
getContextReturnValue() {
return {}
}