EventEmitterã®ããã«Pub/Subãè¡ãeventmitã¨ããå°ããªã©ã¤ãã©ãªãæ¸ãã¾ããã azu/eventmit: Simple EventEmitter. A single event object per an event. eventmitã¯ãTypeScriptã§æ¸ããã¦ãã¾ãã ã¾ããNode.jsã®EventEmitterãªã©ã¨ã¯éã£ã¦ãã¤ãã³ãä¸ã¤ã«å¯¾ãã¦eventmitã®ãªãã¸ã§ã¯ããä¸ã¤ä½æãã¦ä½¿ãã¾ãã import { eventmit } from "eventmit"; const event = eventmit<{ key: string }>(); // Register handler event.on((value) => { console.log(1, value); }); event.on((value) => { consol
{{#tags}}- {{label}}
{{/tags}}