// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.import type { JsModuleResolution } from "./JsModuleResolution.js";import type { JsRuntimePlatform } from "./JsRuntimePlatform.js";/** * Guest JavaScript host-environment configuration. * * Selects which globals/builtins/module-resolution surface guest JS sees, * modeled on esbuild's `platform`. Omitting this preserves full Node.js * emulation (`platform = node`). */export type JsRuntimeConfig = { /** * Which host environment to emulate for guest JS. Default `node`. */platform: JsRuntimePlatform, /** * How bare import specifiers resolve. Independent of `platform`. * Default `node`. */moduleResolution: JsModuleResolution, /** * Node builtin-module allow-list. Only valid when `platform = node`. * `None` => engine default allow-list. `Some([])` => deny all builtins. * `Some([..])` => exactly those. */allowedBuiltins?: Array<string>, /** * Opt in to a high-resolution monotonic guest clock. Default false keeps * the security-oriented 1ms timer resolution. */highResolutionTime?: boolean, };
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { JsModuleResolution } from "./JsModuleResolution.js";
import type { JsRuntimePlatform } from "./JsRuntimePlatform.js";
/**
* Guest JavaScript host-environment configuration.
*
* Selects which globals/builtins/module-resolution surface guest JS sees,
* modeled on esbuild's `platform`. Omitting this preserves full Node.js
* emulation (`platform = node`).
*/
export type JsRuntimeConfig = {
/**
* Which host environment to emulate for guest JS. Default `node`.
*/
platform: JsRuntimePlatform,
/**
* How bare import specifiers resolve. Independent of `platform`.
* Default `node`.
*/
moduleResolution: JsModuleResolution,
/**
* Node builtin-module allow-list. Only valid when `platform = node`.
* `None` => engine default allow-list. `Some([])` => deny all builtins.
* `Some([..])` => exactly those.
*/
allowedBuiltins?: Array<string>,
/**
* Opt in to a high-resolution monotonic guest clock. Default false keeps
* the security-oriented 1ms timer resolution.
*/
highResolutionTime?: boolean, };