Skip to content

Commit 1668d6f

Browse files
committed
update v
1 parent 52d4b22 commit 1668d6f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-navigation-confirm",
3-
"version": "1.1.7",
3+
"version": "1.1.10",
44
"description": "A collection of components to display a custom confirmation dialog on navigation. More flexible solution to prevent than default react-router 'Prompt'",
55
"private": false,
66
"main": "lib/index.js",

src/lib/utils/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ function noop() {
22
/* empty function */
33
}
44

5-
// tslint:disable-next-line
6-
function isFunction(fn: object | number | string | boolean | undefined | Function): fn is Function {
7-
return typeof fn === 'function';
5+
function isFunction(
6+
// tslint:disable-next-line
7+
fn: object | number | string | boolean | undefined | Function
8+
// tslint:disable-next-line
9+
): fn is Function {
10+
return typeof fn === "function";
811
}
912

1013
export { noop, isFunction };

0 commit comments

Comments
 (0)