Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent @typescript-eslint/unbound-method error on newer utilities types #17251

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
};