We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2d10dd commit b9fbc69Copy full SHA for b9fbc69
src/docs/utilities/uploadToImageSource.ts
@@ -7,7 +7,7 @@ export function imageSourceLoader<Key extends string>(field: Key) {
7
({
8
// We need to get the first upload in the field, because files always return an array
9
[field]: await generateImageSource(
10
- (<{ [key in Key]: string[] }>args)[field]?.[0],
+ (args as { [key in Key]: string[] })[field]?.[0],
11
),
12
}) as { [key in Key]: ImageSource | null };
13
}
0 commit comments