I am starting to think that I am facing another issue before the `Blot` topic.

I am trying to wrap the following JS function:
    
    
    getLine(index: number): [Blot, Number]
    
    
    Run

I tried the following, but it is not working:
    
    
    proc getLine(api:QuillObj; index:cint):tuple[line:BlotObj;offset:cint] 
{.importcpp:"#.getLine(@)".}
    
    
    Run

The following works well:
    
    
    proc getLineBlot*(api:QuillObj; index:cint):BlotObj 
{.importcpp:"#.getLine(@)[0]".}
    
    proc getLineOffset*(api:QuillObj; index:cint):cint 
{.importcpp:"#.getLine(@)[1]".}
    
    
    Run

How should I wrap `getLine`? 

Reply via email to