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:
DESKTOP-RTLN3BA\$punk 2026-02-16 23:52:43 -08:00
parent 7bd3a4e08f
commit e746863a39
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ interface DriveItem {
isFolder: boolean;
parents?: string[];
size?: number;
iconLink?: string;
iconLink?: string | null;
}
interface ItemTreeNode {

View file

@ -27,7 +27,7 @@ interface DriveItem {
isFolder: boolean;
parents?: string[];
size?: number;
iconLink?: string;
iconLink?: string | null;
}
interface ItemTreeNode {

View file

@ -56,7 +56,7 @@ export const googleDriveItem = z.object({
isFolder: z.boolean(),
parents: z.array(z.string()).optional(),
size: z.coerce.number().optional(),
iconLink: z.string().optional(),
iconLink: z.string().nullable().optional(),
webViewLink: z.string().optional(),
createdTime: z.string().optional(),
modifiedTime: z.string().optional(),