How to import a code editor's javascript files from node-modules in ionic3

i’m working on ionic 3 and i want to use an editor that is written in javascript.
i’m using this editor:
i installed it successfully via npm install my question is that can i import it to my src folder in a page or mod? i know that in ionic 3 javascript cannot be used anymore. but does ace.d.ts change the situation or not?