mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
@uppy/utils: fix type mismatch on getSafeFileId (#6034)
with `exactOptionalPropertyTypes` fixes #6033
This commit is contained in:
parent
5edcb2e885
commit
08b64f93c3
2 changed files with 6 additions and 1 deletions
5
.changeset/heavy-years-fail.md
Normal file
5
.changeset/heavy-years-fail.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@uppy/utils": patch
|
||||
---
|
||||
|
||||
fix ts issue with generateFileID and `exactOptionalPropertyTypes`
|
||||
|
|
@ -83,7 +83,7 @@ export function getSafeFileId<M extends Meta, B extends Body>(
|
|||
(
|
||||
| Pick<RemoteUppyFile<M, B>, 'isRemote' | 'remote'>
|
||||
| Pick<LocalUppyFile<M, B>, 'isRemote'>
|
||||
) & { meta?: { relativePath?: unknown } },
|
||||
) & { meta?: { relativePath?: unknown } | undefined },
|
||||
instanceId: string,
|
||||
): string {
|
||||
if (hasFileStableId(file)) return file.id!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue