Skip to content

RegisterOptions

[<Interface>]
type RegisterOptions<'Data> =
    abstract member data: 'Data option with get, set
    abstract member parentURL: U2<string,URL> option with get, set
    abstract member transferList: obj array option with get, set
    static member Create (?parentURL: U2<string,URL>, ?data: 'Data, ?transferList: obj array) : RegisterOptions<'Data>
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member data: 'Data option with get, set

Any arbitrary, cloneable JavaScript value to pass into the initialize hook.

abstract member parentURL: U2<string,URL> option with get, set

If you want to resolve specifier relative to a base URL, such as import.meta.url, you can pass that URL here. This property is ignored if the parentURL is supplied as the second argument.

abstract member transferList: obj array option with get, set

Transferable objects to be passed into the initialize hook.

Methods

static member Create (?parentURL: U2<string,URL>, ?data: 'Data, ?transferList: obj array) : RegisterOptions<'Data>