feat: add uploadthing driver #1997
Annotations
10 errors and 8 warnings
ci:
src/drivers/uploadthing.ts#L2
'$Fetch' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
|
ci:
src/drivers/uploadthing.ts#L13
Object literal may only specify known properties, and 'apiKey' does not exist in type 'UTApiOptions'.
|
ci:
src/drivers/uploadthing.ts#L20
Property 'map' does not exist on type '{ readonly files: readonly { readonly name: string; readonly size: number; readonly customId: string | null; readonly key: string; readonly status: "Deletion Pending" | "Failed" | "Uploaded" | "Uploading"; readonly id: string; readonly uploadedAt: number; }[]; readonly hasMore: boolean; }'.
|
ci:
src/drivers/uploadthing.ts#L20
Parameter 'file' implicitly has an 'any' type.
|
ci:
src/drivers/uploadthing.ts#L20
Parameter 'k' implicitly has an 'any' type.
|
ci:
src/drivers/uploadthing.ts#L26
Property 'length' does not exist on type '{ readonly data: readonly { readonly key: string; readonly url: string; }[]; }'.
|
ci:
src/drivers/uploadthing.ts#L32
Element implicitly has an 'any' type because expression of type '0' can't be used to index type '{ readonly data: readonly { readonly key: string; readonly url: string; }[]; }'.
|
ci:
src/drivers/uploadthing.ts#L41
No overload matches this call.
|
ci:
src/drivers/uploadthing.ts#L50
No overload matches this call.
|
ci:
test/drivers/uploadthing.test.ts#L4
Cannot find module 'msw/node' or its corresponding type declarations.
|
ci
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci:
src/drivers/uploadthing.ts#L2
'$Fetch' is defined but never used. Allowed unused vars must match /^_/u
|
ci:
src/drivers/uploadthing.ts#L60
'opts' is defined but never used. Allowed unused args must match /^_/u
|
ci:
test/drivers/uploadthing.test.ts#L1
'afterAll' is defined but never used. Allowed unused vars must match /^_/u
|
ci:
test/drivers/uploadthing.test.ts#L1
'beforeAll' is defined but never used. Allowed unused vars must match /^_/u
|
ci:
test/drivers/uploadthing.test.ts#L1
'it' is defined but never used. Allowed unused vars must match /^_/u
|
ci:
test/drivers/uploadthing.test.ts#L12
'server' is assigned a value but never used. Allowed unused vars must match /^_/u
|
ci:
test/drivers/uploadthing.test.ts#L76
'ctx' is defined but never used. Allowed unused args must match /^_/u
|