proute/validate/pages

Types

pub type PageModule {
  PageModule(
    route: discover.PageRoute,
    has_init: Bool,
    update_takes_page_shared_state: Bool,
  )
}

Constructors

  • PageModule(
      route: discover.PageRoute,
      has_init: Bool,
      update_takes_page_shared_state: Bool,
    )
pub type ValidationError {
  ValidationError(
    source_file: String,
    item: String,
    expected: String,
  )
}

Constructors

  • ValidationError(
      source_file: String,
      item: String,
      expected: String,
    )

Values

pub fn describe_error(error: ValidationError) -> String
pub fn validate_mount(
  mount_routes: discover.MountRoutes,
) -> Result(List(PageModule), List(ValidationError))
Search Document