Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/workerd/index.ts

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/workerd/index.ts";

The missing utility types for TypeScript.

Variables

This is the very constructor/class of all async functions.

This is the very constructor/class of all async generator functions.

v
Channel
deprecated

The entry of jsext major functions.

v
example
deprecated

This is the very constructor/class of all generator functions.

v
isClass
deprecated
v
isSubclassOf
deprecated
v
mixins
deprecated
v
Mutex
deprecated
v
Queue
deprecated
v
read
deprecated
v
readAll
deprecated
v
run.workerEntry
deprecated

This is the superclass of all of all TypedArray subclasses, such as Uint8Array, Int16Array, etc.

Functions

Invokes an async generator function and renders its yield value and result in an [err, val] tuple.

Inspired by Golang, cerates a Channel that can be used to transfer data across routines.

Creates a debounced function that delays invoking handler until after delay duration (in milliseconds) have elapsed since the last time the debounced function was invoked.

Marks a function as deprecated and returns a wrapped function.

Inspired by Golang, creates a function that receives a defer keyword which can be used to carry deferred jobs that will be run after the main function is complete.

Acquires a mutex lock for the given key in order to perform concurrent operations and prevent conflicts.

Creates a class that combines all methods from the given base class and mixin classes.

Constructs a Pipeline instance with the given value and performs pipe operations upon it.

Processes data sequentially by the given handler function and prevents concurrency conflicts, it returns a Queue instance that we can push data into.

Creates a throttled function that will only be run once in a certain amount of time.

Wraps a function inside another function and returns a new function that copies the original function's name and other properties.

Interfaces

This interface represents the abstract constructor/class of the given T type.

The Comparable interface is used to compare an object of the same class with an instance of that class, it provides ordering of data for objects of the user-defined class.

This interface represents the constructor/class of the given T type.

A real-array-like object is an array-like object with a slice method.

Type Aliases

Constructs a type by ensuring the specified keys are required.

Constructs a type by making the specified keys optional.

Returns the primitive value held by the given type if its a wrapper object, otherwise returns the type itself.