Skip to content

ModuleRequest

[<Interface>]
type ModuleRequest =
    abstract member attributes: ImportAttributes with get, set
    abstract member specifier: string with get, set
    static member Create (specifier: string, attributes: ImportAttributes) : ModuleRequest
AssemblyXantham.Fable.Node
Attributes[<Interface>]

A ModuleRequest represents the request to import a module with given import attributes and phase.

@since v22.20.0

Properties

abstract member attributes: ImportAttributes with get, set

The "with" value passed to the WithClause in a ImportDeclaration, or an empty object if no value was provided.

abstract member specifier: string with get, set

The specifier of the requested module.

Methods

static member Create (specifier: string, attributes: ImportAttributes) : ModuleRequest