Types
Domain = ref object of JsRoot members*: seq[JsObject] ## https://nodejs.org/api/domain.html#domain_domain_members
- https://nodejs.org/api/domain.html#domain_class_domain
Procs
func add(self: Domain; emitter: auto) {.importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_add_emitter
func binds[T](self: Domain; callback: T): T {.importjs: "#.bind(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_bind_callback
func enter(self: Domain) {.importjs: "#.$1()", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_enter
func exit(self: Domain) {.importjs: "#.$1()", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_exit
func importDomain() {.importjs: "import * as domain from \'domain\'@", ...raises: [], tags: [].}
- Alias for import * as module_name from 'module_name';. Must be called once before using the module
func intercept[T](self: Domain; callback: T): T {.importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_intercept_callback
func newDomain(): Domain {.importjs: "domain.create()", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_create
func remove(self: Domain; emitter: auto) {.importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_remove_emitter
func requireDomain() {.importjs: "const domain = require(\'domain\')@", ...raises: [], tags: [].}
- Alias for const module_name = require('module_name');. Must be called once before using the module
func run[T](self: Domain; fn: T; args: auto) {.importjs: "#.$1(#, #)", ...raises: [], tags: [].}
- https://nodejs.org/api/domain.html#domain_domain_run_fn_args