`import std/jsffi type StyleSpecification = ref object of JsRoot LngLat = ref 
object of JsRoot MapOptions*[T: StyleSpecification | cstring] {.importjs.} = 
ref object of JsRoot container*: cstring center*: LngLat zoom*: int style*: T 
let opts = MapOptions[string]( container: "foo", center: LngLat(), zoom: 1, 
style: "bar" ) `

Run

Reply via email to