kola-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

kola-hooks

Hooks for use in kola framework

Installation

npm install kola-hooks --save

Usage

import hooks = require('kola-hooks');

function sayHello(payload: string, kontext: Kontext): void {
    console.log('Hello!');
}

function sayWorld(payload: string, kontext: Kontext): void {
    console.log('Hello!');
}

kontext.setSignal('signals.hello', hooks([sayHello, sayWorld]));

Package Sidebar

Install

npm i kola-hooks

Weekly Downloads

3

Version

0.0.5

License

MIT

Last publish

Collaborators

  • staticfunction