Trying to use upload thing

export const { Uploader, UploadButton, UploadDropzone } =
generateComponents<UploadFileRouter>();
export const { Uploader, UploadButton, UploadDropzone } =
generateComponents<UploadFileRouter>();
when I try to use these component it still says pass generic?
3 Replies
acronie
acronieOP15mo ago
(alias) type UploadFileRouter = {
[x: string]: Uploader<AnyParams>;
}
import UploadFileRouter
(alias) type UploadFileRouter = {
[x: string]: Uploader<AnyParams>;
}
import UploadFileRouter
│  Type '{}' is not assignable to type '"You forgot to pass the generic"'. typescript (2322) [40, 7] export type UploadFileRouter = typeof ourFileRouter;
acronie
acronieOP15mo ago
Regardless of the type error this is how it looks
No description
acronie
acronieOP15mo ago
Weird 🤔 Anyone :p
Want results from more Discord servers?
Add your server