jshelper

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortSignal

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

AbortSignal interface for JS AbortSignal

func (*AbortSignal) Any

func (a *AbortSignal) Any(args ...any) js.Value

func (*AbortSignal) Timeout

func (a *AbortSignal) Timeout(t int64) js.Value

type ArrayClass

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

ArrayClass interface for JS Array class

func (*ArrayClass) From

func (a *ArrayClass) From(args ...any) js.Value

func (*ArrayClass) New

func (a *ArrayClass) New(args ...any) js.Value

type CacheInterface

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

CacheInterface interface for JS Caches API

func (*CacheInterface) Default

func (c *CacheInterface) Default() js.Value

func (*CacheInterface) Open

func (c *CacheInterface) Open(ns string) js.Value

type LazyJSVal

type LazyJSVal struct {
	js.Value
	sync.Once
}

LazyJSVal Generic interface for lazy JS Value

func (*LazyJSVal) Init

func (l *LazyJSVal) Init(id string)

type NewClass

type NewClass struct {
	ID string
	V  LazyJSVal
}

NewClass generic interface for JS classes

func (*NewClass) Class

func (r *NewClass) Class() js.Value

func (*NewClass) New

func (r *NewClass) New(args ...any) js.Value

func (*NewClass) Truthy

func (r *NewClass) Truthy() bool

type PromiseClass

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

PromiseClass Interface for JS Promise

func (*PromiseClass) New

func (p *PromiseClass) New(args ...any) js.Value

func (*PromiseClass) Reject

func (p *PromiseClass) Reject(args ...any) js.Value

func (*PromiseClass) Resolve

func (p *PromiseClass) Resolve(args ...any) js.Value

Jump to

Keyboard shortcuts

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