Ref https://github.com/nim-lang/Nim/blob/devel/lib/std/jsfetch.nim#L12
type
FetchOptions* = ref object of JsRoot ## Options for Fetch API.
keepalive*: bool
metod* {.importjs: "method".}: cstring
body*, integrity*, referrer*, mode*, credentials*, cache*, redirect*, referrerPolicy*: cstring
headers*: Headers
Response* = ref object of JsRoot ## https://developer.mozilla.org/en-US/docs/Web/API/Response
bodyUsed*, ok*, redirected*: bool
typ* {.importjs: "type".}: cstring
url*, statusText*: cstring
status*: cint
headers*: Headers
body*: cstring
Would like methd (method) or typ (type)? Or use backticks? Or whatever works?
Backticks work:
type
O = object
`method`*: string
let o = O(`method`:"hello world")
echo o.`method`