gleam/javascript

Types

pub external type Reference(value)
pub external type Symbol
pub type TypeOf {
  UndefinedType
  ObjectType
  BooleanType
  NumberType
  BigIntType
  StringType
  SymbolType
  FunctionType
}

Constructors

  • UndefinedType
  • ObjectType
  • BooleanType
  • NumberType
  • BigIntType
  • StringType
  • SymbolType
  • FunctionType

Functions

pub external fn dereference(Reference(a)) -> a
pub external fn get_symbol(String) -> Symbol
pub external fn make_reference(a) -> Reference(a)
pub external fn set_reference(Reference(a), a) -> a
pub external fn type_of(value) -> TypeOf
pub fn update_reference(ref: Reference(a), f: fn(a) -> a) -> a
Search Document