StaticJsBoolean
A sandboxed boolean value.
Import
import { type StaticJsBoolean, isStaticJsBoolean } from "@suntime-js/core";
Extends
Factory
Well-known singletons: realm.types.true, realm.types.false
Properties
Inherits all properties from StaticJsPrimitive.
value
Type: boolean
The native host boolean wrapped by this sandbox value.
typeOf
"boolean"
runtimeTypeOf
"boolean"
Methods
negate()
negate(): StaticJsBoolean
Returns the logical negation of this boolean: realm.types.true if this is false, realm.types.false if this is true.
Type guard
isStaticJsBoolean(value)
isStaticJsBoolean(value: unknown): value is StaticJsBoolean