Skip to content
New issue

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 can't find what I'm looking for: integrations/react.md #2846

Open
shyamilitc opened this issue Aug 2, 2023 · 0 comments
Open

I can't find what I'm looking for: integrations/react.md #2846

shyamilitc opened this issue Aug 2, 2023 · 0 comments

Comments

@shyamilitc
Copy link

Hi,
I am using react typescript.
images_upload_handler: function(blobInfo: { blob: () => { (): any; new(): any; type: string; }; base64: () => string; }, success: (arg0: string) => void, failure: any) {

          success("data:" + blobInfo.blob().type + ";base64," + blobInfo.base64());
      },
      removed_menuitems: "image",

this is my code copied from the website. But its giving the error below.
Type '(blobInfo: { blob: () => { (): any; new (): any; type: string; }; base64: () => string; }, success: (arg0: string) => void, failure: any) => void' is not assignable to type 'UploadHandler'.
Target signature provides too few arguments. Expected 3 or more, but got 2.ts(2322)
Please let me know where I have gone wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant