x/evt/test/test88.ts
123456789101112131415161718import { Evt } from "../lib/index.ts";import { assert } from "https://raw.githubusercontent.com/garronej/tsafe/v0.10.1/deno_dist/mod.ts";const evtText = Evt.create("foo");evtText.state = "bar";assert(evtText.evtChange.state === "bar" as string);evtText.state = "baz";assert(evtText.evtChange.state === "baz");console.log("PASS");