Skip to content

add RejectionFile type #185

add RejectionFile type

add RejectionFile type #185

Triggered via push February 5, 2025 11:38
Status Failure
Total duration 48s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors
build: src/components/DropzoneArea.tsx#L192
Type '{ fileObjects: FileObject[]; onAdd: ((newFiles: FileObject[]) => void) | undefined; onDelete: ((deletedFileObject: FileObject, index: number) => void) | undefined; ... 29 more ...; onDropRejected?: ((rejectedFiles: FileRejection[], event: DropEvent) => void) | undefined; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<unknown>'.
build: src/components/DropzoneAreaBase.tsx#L470
Argument of type 'never[] | Accept' is not assignable to parameter of type 'string[]'.
build: src/components/DropzoneDialogBase.tsx#L21
Cannot find namespace 'JSX'.
build: src/components/DropzoneDialogBase.tsx#L165
Type '{ classes?: Partial<DropzoneAreaBaseClasses> | undefined; acceptedFiles?: Accept | undefined; filesLimit?: number | undefined; fileObjects: FileObject[]; ... 29 more ...; getPreviewIcon?: ((fileObject: FileObject, classes: { ...; } | undefined) => JSX.Element) | undefined; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.
build: src/components/PreviewList.tsx#L23
Cannot find namespace 'JSX'.
build: src/withTheme.tsx#L7
Argument of type '(props: WithoutTheme<P>, ref: any) => Element' is not assignable to parameter of type 'ForwardRefRenderFunction<unknown, PropsWithoutRef<P>>'.
build
Process completed with exit code 1.