We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found this error on typescript
"version": "4.30.4", my code
const pond = FilePond.create(element, { required: false, maxFiles: 1, name: 'filepond', allowFileTypeValidation: true, acceptedFileTypes: ['video/mp4'], labelFileTypeNotAllowed: 'Tipo de archivo no válido', minFileSize: "1KB", maxFileSize: "50MB", labelMaxFileSizeExceeded: "Video demasiado grande", credits: false, chunkUploads: true, server: { headers: { "X-CSRFToken": csr_token_input ? csr_token_input.value : "" }, url: window.location.origin + '/fp', process: { url: '/process/', method: 'POST', withCredentials: false, }, revert: '/revert/', patch: '/patch/' } }
Type '{ headers: { "X-CSRFToken": string; }; url: string; process: { url: string; method: "POST"; withCredentials: false; }; revert: string; patch: string; }' is not assignable to type 'string | { url?: string | undefined; timeout?: number | undefined; headers?: { [key: string]: string | number | boolean; } | undefined; process?: string | ServerUrl | ProcessServerConfigFunction | null | undefined; ... 4 more ...; remove?: RemoveServerConfigFunction | ... 1 more ... | undefined; } | null | undefined'. Object literal may only specify known properties, and 'patch' does not exist in type '{ url?: string | undefined; timeout?: number | undefined; headers?: { [key: string]: string | number | boolean; } | undefined; process?: string | ServerUrl | ProcessServerConfigFunction | null | undefined; ... 4 more ...; remove?: RemoveServerConfigFunction | ... 1 more ... | undefined; }'.ts(2322)
It work but patch is red :(
just add patch in server configuration and work with typescript
- Device: PC - OS: Linux - Browser: Brave
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Have you updated FilePond and its plugins?
Describe the bug
I found this error on typescript
"version": "4.30.4",
my code
Type '{ headers: { "X-CSRFToken": string; }; url: string; process: { url: string; method: "POST"; withCredentials: false; }; revert: string; patch: string; }' is not assignable to type 'string | { url?: string | undefined; timeout?: number | undefined; headers?: { [key: string]: string | number | boolean; } | undefined; process?: string | ServerUrl | ProcessServerConfigFunction | null | undefined; ... 4 more ...; remove?: RemoveServerConfigFunction | ... 1 more ... | undefined; } | null | undefined'.
Object literal may only specify known properties, and 'patch' does not exist in type '{ url?: string | undefined; timeout?: number | undefined; headers?: { [key: string]: string | number | boolean; } | undefined; process?: string | ServerUrl | ProcessServerConfigFunction | null | undefined; ... 4 more ...; remove?: RemoveServerConfigFunction | ... 1 more ... | undefined; }'.ts(2322)
It work but patch is red :(
Reproduction
just add patch in server configuration and work with typescript
Environment
The text was updated successfully, but these errors were encountered: