{"_id":"type-signals","_rev":"2375156","name":"type-signals","description":"Small and fast Signal library for Typescript.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"englercj","email":"englercj@live.com"}],"time":{"modified":"2022-01-14T11:14:18.000Z","created":"2019-09-15T19:01:38.092Z","1.1.0":"2020-04-22T17:59:02.097Z","1.0.3":"2019-09-15T20:21:54.039Z","1.0.2":"2019-09-15T20:12:22.862Z","1.0.1":"2019-09-15T19:11:51.389Z","1.0.0":"2019-09-15T19:01:38.092Z"},"users":{},"author":{"name":"Chad Engler","email":"chad@pantherdev.com"},"repository":{"type":"git","url":"git+https://github.com/englercj/type-signals.git"},"versions":{"1.1.0":{"name":"type-signals","version":"1.1.0","main":"./dist/type-signals.cjs.js","module":"./dist/type-signals.esm.js","bundle":"./dist/type-signals.js","types":"./dist/index.d.ts","description":"Small and fast Signal library for Typescript.","author":{"name":"Chad Engler","email":"chad@pantherdev.com"},"license":"MIT","bugs":{"url":"https://github.com/englercj/type-signals/issues"},"homepage":"https://github.com/englercj/type-signals","repository":{"type":"git","url":"git+https://github.com/englercj/type-signals.git"},"keywords":["typescript","signals","events"],"scripts":{"prepublishOnly":"npm run build","prebuild":"rimraf dist","build":"rollup -c","watch":"rollup -cw","docs":"typedoc","predeploy":"rimraf ./docs && npm run docs","deploy":"gh-pages -d docs","postpublish":"npm run deploy","test":"mocha -r test/tshook.js ./test/*.test.ts"},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/sinon":"^7.5.2","@types/sinon-chai":"^3.2.3","chai":"^4.2.0","gh-pages":"^2.2.0","mocha":"^7.1.0","rimraf":"^3.0.2","rollup":"^1.31.1","rollup-plugin-terser":"^5.3.0","rollup-plugin-typescript2":"^0.26.0","sinon":"^9.0.1","sinon-chai":"^3.5.0","ts-node":"^8.6.2","typedoc":"^0.16.11","typescript":"^3.8.3"},"dependencies":{},"gitHead":"205eaa995eb7f5df5e83d8920e81b8d93561f4ae","_id":"type-signals@1.1.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"c3b756a64c794f8c2750c981b36c1e6e1014124d","size":9215,"noattachment":false,"key":"/type-signals/-/type-signals-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-signals/download/type-signals-1.1.0.tgz"},"maintainers":[{"name":"englercj","email":"englercj@live.com"}],"_npmUser":{"name":"englercj","email":"englercj@live.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-signals_1.1.0_1587578341977_0.33303137490851875"},"_hasShrinkwrap":false,"publish_time":1587578342097,"_cnpm_publish_time":1587578342097},"1.0.3":{"name":"type-signals","version":"1.0.3","main":"./dist/type-signals.cjs.js","module":"./dist/type-signals.esm.js","bundle":"./dist/type-signals.js","types":"./dist/index.d.ts","description":"Small and fast Signal library for Typescript.","author":{"name":"Chad Engler","email":"chad@pantherdev.com"},"license":"MIT","bugs":{"url":"https://github.com/englercj/type-signals/issues"},"homepage":"https://github.com/englercj/type-signals","repository":{"type":"git","url":"git+https://github.com/englercj/type-signals.git"},"keywords":["typescript","signals","events"],"scripts":{"prepublishOnly":"npm run build","prebuild":"rimraf dist","build":"rollup -c","watch":"rollup -cw"},"devDependencies":{"typescript":"^3.6.3","rimraf":"^3.0.0","rollup":"^1.21.3","rollup-plugin-terser":"^5.1.2","rollup-plugin-typescript2":"^0.24.2"},"dependencies":{},"gitHead":"eb371f60a92d7932f818b58891d70a9a971e284e","_id":"type-signals@1.0.3","_nodeVersion":"12.6.0","_npmVersion":"6.10.2","_npmUser":{"name":"englercj","email":"englercj@live.com"},"dist":{"shasum":"45dbaf7e6371bed304be67ea43908c8a9850acec","size":7917,"noattachment":false,"key":"/type-signals/-/type-signals-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-signals/download/type-signals-1.0.3.tgz"},"maintainers":[{"name":"englercj","email":"englercj@live.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-signals_1.0.3_1568578913902_0.7213529493493387"},"_hasShrinkwrap":false,"publish_time":1568578914039,"_cnpm_publish_time":1568578914039},"1.0.2":{"name":"type-signals","version":"1.0.2","main":"./dist/type-signals.cjs.js","module":"./dist/type-signals.esm.js","bundle":"./dist/type-signals.js","types":"./typings/index.d.ts","description":"Small and fast Signal library for Typescript.","author":{"name":"Chad Engler","email":"chad@pantherdev.com"},"license":"MIT","bugs":{"url":"https://github.com/englercj/type-signals/issues"},"homepage":"https://github.com/englercj/type-signals","repository":{"type":"git","url":"git+https://github.com/englercj/type-signals.git"},"keywords":["typescript","signals","events"],"scripts":{"prepublishOnly":"npm run build","build":"rollup -c","watch":"rollup -cw"},"devDependencies":{"typescript":"^3.6.3","rimraf":"^3.0.0","rollup":"^1.21.3","rollup-plugin-terser":"^5.1.2","rollup-plugin-typescript2":"^0.24.2"},"dependencies":{},"gitHead":"62eef19ffa72e7ec9305375b651bc7e7a26f935f","_id":"type-signals@1.0.2","_nodeVersion":"12.6.0","_npmVersion":"6.10.2","_npmUser":{"name":"englercj","email":"englercj@live.com"},"dist":{"shasum":"aa23e6abdc5ded7b90ca9334b3b5d5a931675dff","size":7919,"noattachment":false,"key":"/type-signals/-/type-signals-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-signals/download/type-signals-1.0.2.tgz"},"maintainers":[{"name":"englercj","email":"englercj@live.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-signals_1.0.2_1568578342737_0.2595837622281094"},"_hasShrinkwrap":false,"publish_time":1568578342862,"_cnpm_publish_time":1568578342862},"1.0.1":{"name":"type-signals","version":"1.0.1","main":"./dist/type-signals.js","types":"./dist/type-signals.d.ts","description":"Small and fast Signal library for Typescript.","author":{"name":"Chad Engler","email":"chad@pantherdev.com"},"license":"MIT","bugs":{"url":"https://github.com/englercj/type-signals/issues"},"homepage":"https://github.com/englercj/type-signals#readme","repository":{"type":"git","url":"git+https://github.com/englercj/type-signals.git"},"keywords":["typescript","signals","events"],"scripts":{"prepublishOnly":"npm run build","build":"tsc -p tsconfig.json","pretest":"npm run build","test":""},"devDependencies":{"typescript":"^3.4.3"},"dependencies":{},"gitHead":"aa33a44ca3cf281d11dab2038abbed41c96f6b81","_id":"type-signals@1.0.1","_nodeVersion":"12.6.0","_npmVersion":"6.10.2","_npmUser":{"name":"englercj","email":"englercj@live.com"},"dist":{"shasum":"07cd674dbde6598fee17fc3eebb14dfca5e8f750","size":4232,"noattachment":false,"key":"/type-signals/-/type-signals-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-signals/download/type-signals-1.0.1.tgz"},"maintainers":[{"name":"englercj","email":"englercj@live.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-signals_1.0.1_1568574711214_0.2536931592604619"},"_hasShrinkwrap":false,"publish_time":1568574711389,"_cnpm_publish_time":1568574711389},"1.0.0":{"name":"type-signals","version":"1.0.0","main":"./dist/type-signals.js","types":"./dist/type-signals.d.ts","description":"Small and fast Signal library for Typescript.","author":{"name":"Chad Engler","email":"chad@pantherdev.com"},"license":"MIT","bugs":{"url":"https://github.com/englercj/type-signals/issues"},"homepage":"https://github.com/englercj/type-signals#readme","scripts":{"build":"tsc -p tsconfig.json","pretest":"npm run build","test":""},"repository":{"type":"git","url":"git+https://github.com/englercj/type-signals.git"},"keywords":["typescript","signals","events"],"devDependencies":{"typescript":"^3.4.3"},"gitHead":"a8d3df7202bfa7739e4ede983c9382c930ecf146","_id":"type-signals@1.0.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.2","_npmUser":{"name":"englercj","email":"englercj@live.com"},"dist":{"shasum":"3b1a6c41ed491c9adfbb2591920b830510ede128","size":2674,"noattachment":false,"key":"/type-signals/-/type-signals-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-signals/download/type-signals-1.0.0.tgz"},"maintainers":[{"name":"englercj","email":"englercj@live.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-signals_1.0.0_1568574097938_0.7870178806064563"},"_hasShrinkwrap":false,"publish_time":1568574098092,"_cnpm_publish_time":1568574098092}},"readme":"# Type Signals\n\nSmall and fast Signal library for Typescript.\n\nHeavily inspired by [mini-signals](https://github.com/Hypercubed/mini-signals).\n\n## Install\n\n```\nnpm install type-signals\n```\n\n## Documentation\n\n- https://englercj.github.io/type-signals/\n\n## Example Usage\n\n```ts\nimport { Signal } from 'type-signals';\n\ntype OnDoThingSignal = (foo: string, bar: string): void;\nconst mySignal = new Signal<OnDoThingSignal>();\n\nconst binding = mySignal.add(onSignal); // add listener\nmySignal.dispatch('foo', 'bar');        // dispatch signal passing custom parameters\nbinding.detach();                       // remove a single listener\n\nfunction onSignal(foo: string, bar: string)\n{\n    assert(foo === 'foo');\n    assert(bar === 'bar');\n}\n```\n","_attachments":{},"homepage":"https://github.com/englercj/type-signals","bugs":{"url":"https://github.com/englercj/type-signals/issues"},"license":"MIT"}