Format stuff

This commit is contained in:
2026-04-20 12:13:36 +02:00
parent 3423be6736
commit 4bb13739d5
6 changed files with 76 additions and 49 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ import type { OmniEvents } from "./types/events";
import type { OmniPlayerState } from "./types/player";
function capitalize<T extends string>(str: T): Capitalize<T> {
return (str.charAt(0).toUpperCase() +
str.slice(1).toLowerCase()) as Capitalize<T>;
return (str.charAt(0).toUpperCase() + str.slice(1)) as Capitalize<T>;
}
export const useEvent = <Event extends keyof OmniEvents>(