@godgiven/signal
v0.4.0
Published
Typescript/Javascript signal message handeler
Downloads
7
Readme
@godgiven/signal
A library for communicate packages with together. you can install signal with:
yarn add @godgiven/signal
Uses
import { dispatchSignal } from '@godgiven/signal';
declare global
{
interface SignalList
{
readonly test: string;
}
}
void dispatchSignal('test', 'Every thing is ok');
console.log(getSignalValue('test') ?? 'Every thing is bad');