Skip to content

fix Accept type

fix Accept type #183

Triggered via push February 5, 2025 11:19
Status Failure
Total duration 56s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 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: File[], event: DropEvent) => void) | undefined; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<unknown>'.
build: src/components/DropzoneAreaBase.tsx#L469
Argument of type 'FileRejection' is not assignable to parameter of type 'File'.
build: src/components/DropzoneAreaBase.tsx#L477
Argument of type 'FileRejection[]' is not assignable to parameter of type 'File[]'.
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.