javascript - Cordova plugin overrides a default TypeScript namespace -


i have installed cordova-plugin-file. implemented so:

import { file } 'cordova-plugin-file';  constructor(file: file) { ... }  .... 

but i'm trying access javascript file.

although when i'm trying create normal file so:

let myfile = new file(blob, name, mimetype);

the plugin name overrides default file name makes option illegal.

is there way can still use javascript file , using plugin in same class?

use alias import:

import { file filecordova } 'cordova-plugin-file';


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -