mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-10 16:22:38 +02:00
fix: update iconLink type to allow null values in DriveItem interfaces
- Modified the iconLink property in DriveItem interfaces for Composio and Google Drive folder trees to accept null values, enhancing type safety. - Updated the corresponding type definition in connector.types.ts to reflect this change.
This commit is contained in:
parent
7bd3a4e08f
commit
e746863a39
3 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ interface DriveItem {
|
||||||
isFolder: boolean;
|
isFolder: boolean;
|
||||||
parents?: string[];
|
parents?: string[];
|
||||||
size?: number;
|
size?: number;
|
||||||
iconLink?: string;
|
iconLink?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ItemTreeNode {
|
interface ItemTreeNode {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ interface DriveItem {
|
||||||
isFolder: boolean;
|
isFolder: boolean;
|
||||||
parents?: string[];
|
parents?: string[];
|
||||||
size?: number;
|
size?: number;
|
||||||
iconLink?: string;
|
iconLink?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ItemTreeNode {
|
interface ItemTreeNode {
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ export const googleDriveItem = z.object({
|
||||||
isFolder: z.boolean(),
|
isFolder: z.boolean(),
|
||||||
parents: z.array(z.string()).optional(),
|
parents: z.array(z.string()).optional(),
|
||||||
size: z.coerce.number().optional(),
|
size: z.coerce.number().optional(),
|
||||||
iconLink: z.string().optional(),
|
iconLink: z.string().nullable().optional(),
|
||||||
webViewLink: z.string().optional(),
|
webViewLink: z.string().optional(),
|
||||||
createdTime: z.string().optional(),
|
createdTime: z.string().optional(),
|
||||||
modifiedTime: z.string().optional(),
|
modifiedTime: z.string().optional(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue