Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/3.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jansiegel committed Dec 13, 2019
2 parents 3331959 + 046b2a6 commit 386a950
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@handsontable/react",
"version": "3.1.1",
"version": "3.1.2",
"description": "Best Data Grid for React with Spreadsheet Look and Feel.",
"author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",
"homepage": "https://handsontable.com",
Expand Down Expand Up @@ -77,7 +77,7 @@
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript2": "^0.22.1",
"rollup-plugin-uglify": "^6.0.3",
"rollup-plugin-uglify": "^6.0.4",
"typescript": "^3.5.3",
"uglify-js": "^3.4.9"
},
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function createPortal(rElement: React.ReactElement, props, callback: Func
* @param {Function} Klass Class to have the methods renamed.
* @returns {Function} Class with the renamed methods.
*/
export function addUnsafePrefixes(Klass) {
export function addUnsafePrefixes<T extends any>(Klass: T): T {
const reactSemverArray = React.version.split('.').map((v) => parseInt(v));
const shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3;

Expand Down

0 comments on commit 386a950

Please sign in to comment.