refactor: put types in utils

This commit is contained in:
Pihkaal
2024-05-30 16:01:17 +02:00
parent b5dfdc1f84
commit ca5c504d2c
4 changed files with 17 additions and 9 deletions

View File

@@ -9,10 +9,3 @@ export type KittyContextProps = {
cols: number;
active: boolean;
};
type Prettify<T> = NonNullable<{ [K in keyof T]: T[K] }>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type InnerKittyProps<T extends (...args: any[]) => any> = Prettify<
Parameters<T>[0] & KittyContextProps
>;