Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tui/src/signals/mod.ts>makeSetMethodsReactive

🦕 Deno module for creating Terminal User Interfaces
Latest
function makeSetMethodsReactive
Re-export
import { makeSetMethodsReactive } from "https://deno.land/x/tui@2.1.11/src/signals/mod.ts";

Replaces add, delete and clear methods in given set with ones that provide reactivity.

When set gets in any way updated propagate method gets called on provided signal.

Type Parameters

T extends Set<unknown>
S

Parameters

set: T
signal: Signal<S>