refactor: put types in utils
This commit is contained in:
@@ -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
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user