FilePondPluginImageEditor.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // @ts-ignore
  2. import { FilePondOptions } from 'filepond';
  3. declare module 'filepond' {
  4. export interface FilePondOptions {
  5. /** Enable or disable image editor */
  6. allowImageEditor?: boolean;
  7. /** Enable or disable instant edit mode */
  8. imageEditorInstantEdit?: boolean;
  9. /** Enable or disable edit button */
  10. imageEditorAllowEdit?: boolean;
  11. /** Override detection of edit support */
  12. imageEditorSupportEdit?: boolean;
  13. /** Override detection of write support */
  14. imageEditorSupportWriteImage?: boolean;
  15. /** Enable or disable outputing an image */
  16. imageEditorWriteImage?: boolean;
  17. /** Receives image write output expects file or array of file items in return */
  18. imageEditorAfterWriteImage?: (res: {
  19. src: File | Blob;
  20. imageState: any;
  21. dest: File;
  22. }) => File | { name: null | string; file: File | Blob }[];
  23. /** Image Editor configuration object */
  24. imageEditor?: any;
  25. /** Image Editor edit icon */
  26. imageEditorIconEdit?: string;
  27. /** Image Editor edit button position */
  28. styleImageEditorButtonEditItemPosition?: string;
  29. }
  30. }