Skip to content

LoadHookContext

[<Interface>]
type LoadHookContext =
    abstract member conditions: string array with get, set
    abstract member format: string option with get, set
    abstract member importAttributes: ImportAttributes with get, set
    static member Create (conditions: string array, importAttributes: ImportAttributes, ?format: string) : LoadHookContext
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member conditions: string array with get, set

Export conditions of the relevant package.json

abstract member format: string option with get, set

The format optionally supplied by the resolve hook chain (can be an intermediary value).

abstract member importAttributes: ImportAttributes with get, set

An object whose key-value pairs represent the assertions for the module to import

Methods

static member Create (conditions: string array, importAttributes: ImportAttributes, ?format: string) : LoadHookContext