mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 19:06:24 +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;
|
||||
parents?: string[];
|
||||
size?: number;
|
||||
iconLink?: string;
|
||||
iconLink?: string | null;
|
||||
}
|
||||
|
||||
interface ItemTreeNode {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ interface DriveItem {
|
|||
isFolder: boolean;
|
||||
parents?: string[];
|
||||
size?: number;
|
||||
iconLink?: string;
|
||||
iconLink?: string | null;
|
||||
}
|
||||
|
||||
interface ItemTreeNode {
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue