@hansogj/abonnement-js
Version:
lightweight naive event subscription
30 lines (18 loc) • 557 B
Markdown
lightweight, naive, event susbscription
```typescript
import {
Abonnement,
JoinedAbonnement,
AlleAbonnementer,
} from "../src/abonnement";
let stringAbonnement: Abonnement<String> = new Abonnement<String>("start value")
stringAbonnement.abonner(e => console.log("current value is " + e);
stringAbonnement.varsle("updated value")
```
Inspect the [test](src/abonnement.spec.ts)-file for usage
`npm ci & npm build` to build this pack
Moving target lib from "_lib_" to "_dist_"