Skip to content
On this page

Enums

Enums exported from mlly.

AssertType

import assertion types.

INFO

It's unclear whether or not the HTML spec will require assertion types for WebAssembly modules.

ts
enum AssertType {
  IMPLICIT = 'javascript',
  JSON = 'json'
}

See Also

Format

Module formats.

ts
enum Format {
  BUILTIN = 'builtin',
  COMMONJS = 'commonjs',
  JSON = 'json',
  MODULE = 'module',
  WASM = 'wasm'
}

SpecifierKind

Module specifier types.

ts
enum SpecifierKind {
  ABSOLUTE = 'absolute',
  BARE = 'bare',
  RELATIVE = 'relative'
}

See Also

SpecifierSyntaxKind

Module specifier syntax types.

ts
enum SpecifierSyntaxKind {
  DYNAMIC = 'dynamic',
  STATIC = 'static'
}

StatementKind

CommonJS and ESM statement kinds.

ts
enum StatementKind {
  EXPORT = 'export',
  IMPORT = 'import',
  REQUIRE = 'require'
}

StatementSyntaxKind

CommonJS and ESM statement syntax kinds.

ts
enum StatementSyntaxKind {
  DECLARATION = 'declaration',
  DEFAULT = 'default',
  DEFAULT_WITH_NAMED = 'default-with-named',
  DEFAULT_WITH_NAMESPACE = 'default-with-namespace',
  DYNAMIC = 'dynamic',
  LIST = 'list',
  NAMED = 'named',
  NAMESPACE = 'namespace',
  REQUIRE = 'require',
  SIDE_EFFECT = 'side-effect'
}