package melange

  1. Overview
  2. Docs
Toolchain to produce JS from Reason/OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

melange-6.0.1-53.tbz
sha256=7b5fd122c16c29e01b736c2041fd4786d6be9f201722e10feee6ad5eb53d70bb
sha512=8c3099db5328f833d55b5447342cb6a059f002e2e977b897c48b2b08515addf304d5c54b4462f21a05d6947c43634cf3edb55cffef5d491441ae42585b47061d

doc/melange.js_parser/Js_parser/Flow_ast/Statement/DeclareExportDeclaration/index.html

Module Statement.DeclareExportDeclarationSource

Sourcetype ('M, 'T) declaration =
  1. | Variable of 'M * ('M, 'T) DeclareVariable.t
  2. | Function of 'M * ('M, 'T) DeclareFunction.t
  3. | Class of 'M * ('M, 'T) DeclareClass.t
  4. | Component of 'M * ('M, 'T) DeclareComponent.t
  5. | DefaultType of ('M, 'T) Type.t
  6. | NamedType of 'M * ('M, 'T) TypeAlias.t
  7. | NamedOpaqueType of 'M * ('M, 'T) OpaqueType.t
  8. | Interface of 'M * ('M, 'T) Interface.t
  9. | Enum of 'M * ('M, 'T) EnumDeclaration.t
Sourceand ('M, 'T) t = {
  1. default : 'M option;
  2. declaration : ('M, 'T) declaration option;
  3. specifiers : ('M, 'T) ExportNamedDeclaration.specifier option;
  4. source : ('T * 'M StringLiteral.t) option;
  5. comments : ('M, unit) Syntax.t option;
}
Sourceval pp_declaration : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> Format.formatter -> ('M, 'T) declaration -> unit
Sourceval show_declaration : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> ('M, 'T) declaration -> string
Sourceval pp : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> Format.formatter -> ('M, 'T) t -> unit
Sourceval show : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> ('M, 'T) t -> string