jsapi

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx *engine.RuntimeModuleContext, reg *noderequire.Registry)

Register installs the native require("css-visual-diff") module into a goja require registry.

Types

type MethodSpec

type MethodSpec struct {
	Owner string
	Hint  string
}

type ProxyMethod

type ProxyMethod func(call goja.FunctionCall, receiver goja.Value) goja.Value

type ProxyRegistry

type ProxyRegistry struct {
	// contains filtered or unexported fields
}

ProxyRegistry tracks Go backing values for Goja Proxy objects created by the css-visual-diff JS API. Strict lower-level APIs use it to reject raw objects and unwrap only handles/builders created by this package.

func NewProxyRegistry

func NewProxyRegistry() *ProxyRegistry

type ProxySpec

type ProxySpec struct {
	Owner        string
	Methods      map[string]ProxyMethod
	MethodOwners map[string]MethodSpec
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL