When attempting to use the javascript file object, I encountered an issue because the ionic native file object already uses the same key File
Here is an example:
import { File } from '@ionic-native/file';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage{
constructor(private file: File) { }
test(buf){
let file = new File([buf],'test.txt',{type:'text/plain'})
//the above javascript File Object is being recognized as the File object from @ionic-native/file
}
}