it's possible like this (not tested)
proc `[]`(obj: JsObject, key: string): ??? {.importjs: "#[#]".}
Runbut you don't know the return type
it's possible like this (not tested)
proc `[]`(obj: JsObject, key: string): ??? {.importjs: "#[#]".}
Runbut you don't know the return type