Skip to content

Commit

Permalink
fix(ui): prevent @typescript-eslint/unbound-method error on newer u…
Browse files Browse the repository at this point in the history
…tilities types (#17251)

Types fixes

Co-authored-by: Gualtiero <gualtiero@aspireapp.com>
  • Loading branch information
maiolica and Gualtiero committed Jun 5, 2024
1 parent be5a9b2 commit a45122e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/types/composables.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export function useHydration(): {
};

export function useInterval(): {
registerInterval(fn: () => void, interval: string | number): void;
removeInterval(): void;
registerInterval: (fn: () => void, interval: string | number) => void;
removeInterval: () => void;
};

export function useId(opts?: {
Expand All @@ -60,11 +60,11 @@ export function useSplitAttrs(): {
};

export function useTick(): {
registerTick(fn: () => void): void;
removeTick(): void;
registerTick: (fn: () => void) => void;
removeTick: () => void;
};

export function useTimeout(): {
registerTimeout(fn: () => void, delay?: string | number): void;
removeTimeout(): void;
registerTimeout: (fn: () => void, delay?: string | number) => void;
removeTimeout: () => void;
};

0 comments on commit a45122e

Please sign in to comment.