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