refactor: put types in utils
This commit is contained in:
15
src/utils/types.ts
Normal file
15
src/utils/types.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { KittyContextProps } from "~/context/KittyContext";
|
||||
|
||||
export 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
|
||||
>;
|
||||
|
||||
export type Manifest = {
|
||||
projects: Array<{
|
||||
name: string;
|
||||
files: Array<string>;
|
||||
}>;
|
||||
};
|
||||
Reference in New Issue
Block a user