reshow
Advanced tools
Comparing version 0.17.27 to 0.17.28
@@ -206,2 +206,5 @@ "use strict"; | ||
}, | ||
/** | ||
* @returns {React.ReactElement} | ||
*/ | ||
}, | ||
@@ -271,5 +274,5 @@ { | ||
(0, _defineProperty2["default"])(Reshow, "defaultProps", { | ||
fallback: false, | ||
fallback: null, | ||
}); | ||
var _default = Reshow; | ||
exports["default"] = _default; |
{ | ||
"version": "0.17.27", | ||
"version": "0.17.28", | ||
"name": "reshow", | ||
@@ -51,3 +51,3 @@ "repository": { | ||
"build:es": "BABEL_ENV=es babel src -d build/es/src --out-file-extension .mjs", | ||
"build:type": "npx -p typescript tsc src/index.js src/**/*.js src/ui/**/*.jsx --jsx react-jsx --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types", | ||
"build:type": "npx -p typescript tsc src/*.js src/**/*.js src/ui/**/*.jsx --jsx react-jsx --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types", | ||
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:type", | ||
@@ -54,0 +54,0 @@ "mochaFor": "STRICT_MODE=1 mocha -r global-jsdom/register", |
export default Reshow; | ||
declare class Reshow extends PureComponent<any, any, any> { | ||
static defaultProps: { | ||
fallback: boolean; | ||
fallback: any; | ||
}; | ||
@@ -25,5 +25,8 @@ static getDerivedStateFromError(error: any): { | ||
componentDidCatch(error: any, info: any): void; | ||
render(): JSX.Element; | ||
/** | ||
* @returns {React.ReactElement} | ||
*/ | ||
render(): React.ReactElement; | ||
} | ||
export function update(params: any): void; | ||
import { PureComponent } from "react"; |
Sorry, the diff of this file is not supported yet
87953
2521