fusion/types

Types

pub type AssetConfig {
  AssetConfig(directory: String, includes: List(String))
}

Constructors

  • AssetConfig(directory: String, includes: List(String))

    Arguments

    directory

    Public directory served via HTTP (e.g., “public”)

    includes

    Files to embed in worker bundle (e.g., [“priv/secret.cert”])

pub type ClassDef {
  ClassDef(
    name: String,
    extends: option.Option(Extends),
    methods: List(Method),
    should_export: Bool,
    source_file: String,
  )
}

Constructors

pub type Extends {
  Extends(name: String, from: String)
}

Constructors

  • Extends(name: String, from: String)
pub type FusionConfig {
  FusionConfig(
    classes: List(ClassDef),
    runtime: String,
    entry_point: String,
    port: Int,
    minify: Bool,
    source_map: Bool,
    assets: AssetConfig,
  )
}

Constructors

  • FusionConfig(
      classes: List(ClassDef),
      runtime: String,
      entry_point: String,
      port: Int,
      minify: Bool,
      source_map: Bool,
      assets: AssetConfig,
    )
pub type FusionError {
  ScanError(String)
  ParseError(String)
  BuildError(String)
  CodegenError(String)
  IoError(String)
}

Constructors

  • ScanError(String)
  • ParseError(String)
  • BuildError(String)
  • CodegenError(String)
  • IoError(String)
pub type Method {
  Method(name: String, params: List(String), is_async: Bool)
}

Constructors

  • Method(name: String, params: List(String), is_async: Bool)
Search Document