The following code is written with ES6: How do I convert to pre ES6 so that its compatible with IE. I tried to following; see second code snipet below
FilePond.create(document.querySelector('input'), {
    acceptedFileTypes: ['image/png'],
    fileValidateTypeDetectType: (source, type) => new Promise((resolve, reject) => {
        // Do custom type detection here and return with promise
        resolve(type);
    })
});
i tried the following 
FilePond.create(imageInputElement, {
            acceptedFileTypes: ['image/png', 'image/x-png', 'image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/tiff', 'application/pdf'],
            fileValidateTypeDetectType: function (source, type) {
                                            return resolveFileType(resolve, reject);
                                        }
    })
async function resolveFileType(resolve, reject){
            const response = await resolve(type);
            return response;
        }