Source

adminjs-upload/src/features/upload-file/types/property-custom.type.ts

import { MimeType } from './mime-types.type'

/**
 * Custom ({@link PropertyOptions#custom}) properties passed down to the component.
 * @private
 */
type PropertyCustom = {
  filePathProperty: string,
  fileProperty: string,
  filesToDeleteProperty: string,
  keyProperty: string,
  fileNameProperty?: string,
  mimeTypeProperty?: string,
  bucketProperty?: string,
  defaultBucket: string,
  mimeTypes?: Array<MimeType | string>,
  maxSize?: number,
  provider: string,
  multiple: boolean,
}

export default PropertyCustom