it's possible like this (not tested)
    
    
    proc `[]`(obj: JsObject, key: string): ??? {.importjs: "#[#]".}
    
    
    Run

but you don't know the return type

Reply via email to