update optional generic
This commit is contained in:
parent
238bfde11e
commit
a3db95395e
@ -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",
|
||||
|
@ -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 {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user