mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Format stuff
This commit is contained in:
+1
-2
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user