Browse Source

Fixed type of State.info to match reality being an array of info objects (#4321)

Marc Bennewitz 2 years ago
parent
commit
5056a45523
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/@uppy/core/types/index.d.ts

+ 4 - 4
packages/@uppy/core/types/index.d.ts

@@ -191,12 +191,12 @@ export interface State<
     | UploadedUppyFile<TMeta, TBody>
     | FailedUppyFile<TMeta, TBody>
   }
-  info?: {
+  info?: Array<{
     isHidden: boolean
-    type: string
+    type: LogLevel
     message: string
-    details: string
-  }
+    details: string | null
+  }>
   plugins?: IndexedObject<any>
   totalProgress: number
 }