0👍
✅
Finally, I solved this question after trying many ways.
I don’t know why I cannot import export interface
from the namespace.
I found require function in ace.d.ts
, So I changed
let doc = new Ace.Ace.Document('')
to
let Document = Ace.require('ace/document').Document
When I need Document Object, Just let document = new Document()
it works.
Hope this can help others which have the same question as me.
How I solved?
I search ace.js
about exports.Document
and found ace/document
Source:stackexchange.com