@ainias42/react-bootstrap-mobile 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare function useDelayedEffect(effect: () => (() => void | void), dependencies: any[], delay?: number): void;
1
+ export declare function useDelayedEffect(effect: () => void | (() => void), dependencies: any[], delay?: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainias42/react-bootstrap-mobile",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Mobile React Components using Bootstrap",
5
5
  "main": "dist/bootstrapReactMobile",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  import { useEffect } from "react";
2
2
 
3
- export function useDelayedEffect(effect: () => (() => void|void), dependencies: any[], delay = 100){
3
+ export function useDelayedEffect(effect: () => void|(() => void), dependencies: any[], delay = 100){
4
4
  useEffect(() => {
5
- let cleanup: (() => void|void) | undefined;
5
+ let cleanup: (() => void)|void | undefined;
6
6
  let timeout = setTimeout(() => {
7
7
  cleanup = effect();
8
8
  }, delay);