Skip to content

ResolveHookContext

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

Properties

abstract member conditions: string array with get, set

Export conditions of the relevant package.json

abstract member importAttributes: ImportAttributes with get, set

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

abstract member parentURL: string option with get, set

The module importing this one, or undefined if this is the Node.js entry point

Methods

static member Create (conditions: string array, importAttributes: ImportAttributes, ?parentURL: string) : ResolveHookContext