ModuleType Enum

The type of a module (https://html.spec.whatwg.org/multipage/webappapis.html#module-type-from-module-request).

public enum ModuleType

Fields

NameValueDescription
JavaScript0A JavaScript module.
Json1A JSON module (with { type: "json" }): its default export is the parsed JSON value.
Css2A CSS module (with { type: "css" }): its default export is a constructed CSSStyleSheet.
Text3A text module (with { type: "text" }): its default export is the response decoded as UTF-8, whatever its MIME type.