refactor: rework assets fetching
This commit is contained in:
@@ -6,39 +6,3 @@ export type Prettify<T> = NonNullable<{ [K in keyof T]: T[K] }>;
|
||||
export type InnerKittyProps<T extends (...args: any[]) => any> = Prettify<
|
||||
Parameters<T>[0] & KittyContextProps
|
||||
>;
|
||||
|
||||
export type RootManifest = {
|
||||
files: Array<string>;
|
||||
projects: Array<{
|
||||
name: string;
|
||||
icon: string;
|
||||
}>;
|
||||
links: Array<{
|
||||
name: string;
|
||||
url: string;
|
||||
icon: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type Icon = {
|
||||
char: string;
|
||||
color: string;
|
||||
};
|
||||
|
||||
export type File = {
|
||||
name: string;
|
||||
} & (
|
||||
| {
|
||||
type: "link";
|
||||
url: string;
|
||||
icon: string;
|
||||
}
|
||||
| { type: "file"; repo: string; fileName: string; icon?: string }
|
||||
);
|
||||
|
||||
export type Directory = {
|
||||
name: string;
|
||||
type: "directory";
|
||||
files: Array<File>;
|
||||
opened: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user