Skip to content

Commit

Permalink
Merge pull request #1153 from p3ol/fix/hooks-types
Browse files Browse the repository at this point in the history
🐛fix(hooks): fix hooks types function parameter order
  • Loading branch information
dackmin authored Dec 15, 2022
2 parents df976d4 + 034cf10 commit b9c6765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hooks/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
export declare function useEventListener(
name: string,
handler: Function,
options: { target?: any, enabled?: Boolean }): void;
options?: { target?: any, enabled?: Boolean }): void;

export declare function useInterval(
cb: Function,
time: Number,
options: { enabled?: boolean, layoutEffect?: boolean },
changes?: Array<any>,
options?: { enabled?: boolean, layoutEffect?: boolean },
): void;

export declare function useTimeout(
cb: Function,
time: Number,
options: { enabled?: boolean, layoutEffect?: boolean },
changes?: Array<any>,
options?: { enabled?: boolean, layoutEffect?: boolean },
): void;

export declare function useEffectAfterMount(
Expand Down

0 comments on commit b9c6765

Please # to comment.