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", "name": "base-context-provider",
"version": "1.0.1", "version": "1.0.2",
"description": "Made with create-react-library", "description": "Made with create-react-library",
"author": "vuthpov", "author": "vuthpov",
"license": "MIT", "license": "MIT",

View File

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