Skip to main content
Module

x/tui/mod.ts>makeSetMethodsReactive

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
function makeSetMethodsReactive
Re-export
import { makeSetMethodsReactive } from "https://deno.land/x/tui@2.0.0/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>