midas/browser/gleam

Types

pub type Project

Functions

pub fn compile_package(
  project: Project,
  target: String,
) -> Result(Nil, String)
pub fn new_project() -> Promise(Result(Project, String))
pub fn pop_warning(project: Project) -> Result(String, Nil)
pub fn read_compiled_javascript(
  project: Project,
  module: String,
) -> Result(String, String)
pub fn read_file_bytes(
  project: Project,
  path: String,
) -> Result(BitArray, String)
pub fn reset_warnings(project: Project) -> Nil
pub fn run(
  project: Project,
  module: String,
  function: String,
) -> Promise(Result(Dynamic, String))
pub fn run_with_client(
  client_id: String,
  project: String,
  module: String,
  function: String,
  arg: Dynamic,
) -> Promise(Result(Dynamic, String))
pub fn take_warnings(project: Project) -> List(String)
pub fn write_file(
  project: Project,
  path: String,
  text: String,
) -> Nil
pub fn write_file_bytes(
  project: Project,
  path: String,
  bits: BitArray,
) -> Nil
pub fn write_module(
  project: Project,
  name: String,
  code: String,
) -> Nil
Search Document