{"_id":"typescript-event-target","_rev":"9-202ddb005766cfee92ba1ae3437987c0","name":"typescript-event-target","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"typescript-event-target","version":"1.0.0","keywords":[],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"ISC","_id":"typescript-event-target@1.0.0","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"5a5b028235a895084a461fa11e2b26c903921b55","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.0.0.tgz","fileCount":6,"integrity":"sha512-mnJP0HF7eSn1ntrWKJ+EGoZgDvkF4mO4eKVZH+HMJL+QacKeiAwnnJ/kT9Kpxv18SmK9WFQaKk6MQqvAatgpeQ==","signatures":[{"sig":"MEUCIGSqGEp6opii4VNzy6R704YlIUb/E426STneV/0FgvmxAiEAvkohf/V4wPLGEu3d3YFBk6NBREmxyhw/V8KFc31hfrA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV60zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkHw/8DYC6d7sclmlv6zs8M13H84gVWmZ1DapEGZOcezJSViGzcEc8\r\nWyjgT9rG2pKe/GIrlDdgChmtSnhC516zPoSNkSwmJXJUC3DdRTZQVAV48lLJ\r\nIQpZjN2YrW7BX2AQCbpe8a9waUWWi2H/42fiPI3R5lOI/qokE7CZTbZ+oikd\r\nVw275nl4SVkvlfH6tdtR6YREArCNfEvinFJwAHSx9zmqV1iT+8ZMeDgJ3ayZ\r\nVraEZPVb9adO4jSf25B7B2ElIY+pcBeJDqO4kqxxM40qhXUklfEPeunOs3aA\r\nfY1/A+0imerHIAfWfibpWYfFvqpw9nDV9QXKqKQvNLYBmPwoNxDe6G9Y489y\r\nvAR7M9/+NmSwe+/XAmQ6t8/eONIg4WuO9xXS1b5Yhnggx/+oslHojTAC69K1\r\nzWkA7yDe+85OsSJsIfoDynx6pa29eNxzcQ5dmnxpVDOLeSPdWDlbeTV7RMF5\r\n30vgQO9ZLfKmt36EUA+hb6cdsb2SXnsXft+Od3AX/Hy7YEt10fOLILTWsk6U\r\nwPwDZbr2SHQmUk9o4bxFO/XvkgvH6eP29fjmrDivXOGpIQZPGvNfkyXz+FJW\r\nc2Ob8AbDViAxAoo6wsIYPIqFMlnglhVi/nnoSsN0po3kJuRLecVHzeUAGFcb\r\n+G5xBXL54CD0r2Y+xUzsDRUoydJMl5MZgC8=\r\n=anQS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"752c654addc55f4e5750061c7b61ea62abf2c1b5","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"8.19.2","description":"Strictly typed EventTarget which extends EventTarget directly to allow effortless migration with basically no additional bundle-size.","directories":{},"_nodeVersion":"16.18.0","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.0.0_1666690355076_0.9928731907909962","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"typescript-event-target","version":"1.0.1","keywords":[],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.0.1","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"c8e2c842e821ad00b1ee2335bdb184cff146cacc","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.0.1.tgz","fileCount":6,"integrity":"sha512-Z5hyTx9BZnOAXstrFeAtxKQjbAIRB65pHOvkQvtXsNaY9t4Taed0tzU+THfOjFXwcrtL7abeDYUdcaUCmgpwCA==","signatures":[{"sig":"MEQCIGPDRK+cmZWj4kwZgTKJ1uXg0xN/i4/L7dOFUp1L0K/MAiBPVtAG31jJDgMVUMPIviD4gZ0WHNFvAu1WoNgL48U6hg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV894ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRbA//Xr71wp0Xuz5BoClB7Xee5tWghTN5h++69AUVo+ipJOPQYkCn\r\nX1Nl53n5YFhhCuBekAI3ALNB6plzu+Hvr1LSVvLHivZDCru2cXg2u3qc1RMn\r\n93UyuqHWqHadXJ852/euAZvfHUrGbBaUccf25NOKI47MJCI04ZRwVToWuawu\r\nB8cZmrlL2DDiztMqYnN9NfxBlxHPOjiauUUlaoDYV7yFx+2eBA8vIbK0uVGo\r\nRdtvKdZgyK0rAISTIXVDPfOReYzt6LGSplVIXfIP/SdOWL5O2zyfeO2ZuX5N\r\nfeCv1W81oSDLtRn45YbXTOM2y3HJiK8YDiARYFDmUkdrjRa3iagFVyrNYrwJ\r\nsKPtDDOXO/z66jpZm2lbZncsZHOMDyZnz/mf3vnQPr07vkhLtl+4CXeyWVb7\r\nMRzJKYljlcWNVFG99O/sstxmDNbLc+pTuVN8sRLoC7tQlgZb/AktPVGyh7Uq\r\nPZH2aE6F1h2qxaiwHmzssyxE5Wnk2WvzAn4K1NpRFcWzwKxe8FoKm9DIosMB\r\nLV+VP2vTmwuQfi1XPc2ACalXxo0vhJbPeQf4QfQWt1wJ9riZXIN1W18rOH/H\r\nUsgedKFJ/ipQRbX9FR67srwScpalVc2xT7ssT1zY5CXysS0dTeROIALjfxwv\r\nBe1ocQrEzMYs/rSowedJRMr4JgOuqR5uBMk=\r\n=040m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"21f2f4925669b463dcd3a455880a375bfd7916d2","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"8.19.2","description":"Strictly typed EventTarget which extends EventTarget directly to allow effortless migration with basically no additional bundle-size.","directories":{},"_nodeVersion":"16.18.0","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.0.1_1666699127953_0.10880185342876114","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"typescript-event-target","version":"1.0.2","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.0.2","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"caeed09e4f37359d756fbf598330980338c37cc3","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.0.2.tgz","fileCount":6,"integrity":"sha512-aU57jipg4tV3ybohLgiYgRaZRFTN1fCOfInmCCUx0+lwjukVArVEvlYbDKyLniKNsJSCYS4tweajSXdFfYXlng==","signatures":[{"sig":"MEUCIQCGP6iLOR+zhTN9Mwc71YBNWPt0/MORC7uZDrJv8Zp3xwIgVnYAI7hYSfHeMgwlhdPyTSYKnn3lO/vUuPZzlCSLPfE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV+8dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/RA//aFCJCzmkRNS8W1XhvQ3boR0K4jawtQ7YARi2148uFlgwAbOl\r\nnaQ6tMzmBL79+RY8pt1Gs4dFQKa7MbVnHMbv1tiKgk5qr8RW1j9+O6xVJ9xQ\r\ntEqbR3SFr+VOt308ZxqvXv9pTao2C3QQXMd832zo4rr0v2zwRmWusObDKdD/\r\nfckIKhB8cng6NlQwHYzSDV27pvf+gJClnVSsy1txQduwSfez3HfbJbZ/Dd3/\r\nWDZpKdFgBU7Dqsgxwr1sux+u3p2l19+Icw3Ot37j2o4SRQz7L9W4kwJHdir3\r\nHuTF+lZfCw2uQUpnMLj3iB8R+CduGwv4ne4T82FFmzNjk/K0PuEv2DBc6Qe9\r\ni0zusI8IIjNTZmSSlWevqVhMi2ytmEirsGEO43UcsVWRLNCbFPlkV0QzSSC5\r\nLGYqp5AQKC0U5HM8oOMG84+/+B7INZbfj6CXyltAnpSs29QmP9S2QscFqwvb\r\nonz4uKprTIjoyhqB7PaokFtjT5FBoHVxDTkL4sAPxe7RLTZU9fs289KImf/n\r\n4eVDTWHKYw55kh9jiAR+s88lIMJh85K96CL0Kce96Q1j5vrcG2grjsU27KQa\r\nWHwLS+ki73UCQ6P/imfOwe7U5Uz7B1OqIfpUxm2vm8sDzziqPb+WlBw22GFt\r\nFkPOjr5iQIe/9d/FMG5zMPCaKA+w5mVOTIs=\r\n=9715\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"92fba6bf4b4025f891cb47768b1203aa788a2a28","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"8.19.2","description":"Strictly typed EventTarget which works with all Event-Types and extends EventTarget directly to allow effortless migration with basically no additional bundle-size.","directories":{},"_nodeVersion":"16.18.0","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.0.2_1666707229796_0.5089121159473862","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"typescript-event-target","version":"1.0.3","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.0.3","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"8b4d1599a9822a0f5d15dbac09bd6339dfa8e1d8","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.0.3.tgz","fileCount":6,"integrity":"sha512-q13+d6jY0is2lslfWAZiWex6ZD1urYjuNN2e54pWZvONXC+mnV+Qz+7CgCPiSO1+1RInePY6PQL12X+6JsG/8Q==","signatures":[{"sig":"MEQCIArbLZH68T5uaV6xthmwRHBK3mBiFuP2ZNCYZIgk9ScuAiAvOpBp1DEJsaSJrV0jClexm4Ioh7/d1uJQT6MaYjWPTA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWAQsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonrA//bZwjJi0CIk299GF2A8AdR4FY3lyK5qWjGEv3ngbtAgwHk6vc\r\nTsGDLUokpPBgNgqYkRGB+7dJ7dNvfsp/B04osH5Vfl8CAsh+/NObo160xkEj\r\nBJ7VVH8a/MLMuGAuf5V5SCJVxYJ+Mx7F4ucoan1AIDo/+aAt7gWksobZLf92\r\nyAwlCxmBViglH5rjqdK73iBNA48yZH2DKDJOZMX4O5agomJgULHvL73UehRS\r\nYSKIv5uPp/Jvyc/8zol+QHuXaN2916p90vdOFj7MjpFnJR77pBWTZGryM1OF\r\nwD8l/03zSkWKbUE+TQAU/8JDG/EzlKyDHySeKcuQpnhvFmCXAfyW6TLLpqh6\r\nL606L7TIwbJOquaWJRmWd2ZvmMI/7E8ebT8RZtlm1Hwb2l1vLwki6L0n+4OE\r\nrGHwzI0nIaPiO8rx2tjDC/3LIk+y/tyoqUhA5y57R7x2vEPt4N8syko0MLf/\r\nD7AuHygDsHP8sI1S9wlh4rMHzPSTtIPHlsMz5/m/zGSpfAuNvAktlSBZbcBV\r\naZJJaYsmYsrgPQUByNmuJNqh4zrTvSlGF9EWXUEZxI5z4eDba87wH4/TmPbn\r\nZclXsTg/eFMzRUhVvWBO9qIN76mDrCzqo18QSQFrvK82EQgnItujbSU8A4ey\r\n2tbUm9FnNjG8rqquV8DEVJ1aLVtjsVHYQB4=\r\n=4QvG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"24b5da3a311e22b65d3686f25124f1219465a9c2","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"8.19.2","description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","directories":{},"_nodeVersion":"16.18.0","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.0.3_1666712620489_0.7817192044291148","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"typescript-event-target","version":"1.0.4","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.0.4","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"8ee7d37e8d0d5a6b96dbd4fa8ac2b119fd5c8943","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.0.4.tgz","fileCount":6,"integrity":"sha512-wtO9nh+6+yhqVtcoZbJcLX04a/uHwbBEWmFyl9pL9U1AHSFlztwa7uvpaETxcga5MUOITVPLTGkjWqp7dxYB/g==","signatures":[{"sig":"MEQCIAnYRvjuceRSokDUX66aOkik10hZclLR7zzAeSoUIoDsAiBW+KuvSl+tbLIPgSboVLb/IS2wl9fXAwzlIpE80UYq6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvWAZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNOQ/+NVH2qqBLPB031eS8AWBO53eTTNH2DYP3myA0OP2BrMMK8L2m\r\nYy7qic1e44lOQBYu17cix4WGgK+Mvj4Nf5tqsSAr5MSgveyFXPDl0TfiSqa7\r\nlhmzlF1o9vkEUHzFPktHiEW+hosYX5QwcWDjMgN02XAN2sW7wIyMfM9QY9SE\r\n/eXLFPIst0juF3T1oD2MZ6KYdnAGmquXoL3n/611XWQXImt+jbePaeYiRs40\r\npLGh2sPFXPpNFbUli1idRQBHIiO0OugbjjRN1/cUTIo8BzTtXjlii4dSo/i1\r\nNwwTfgv0kjq3NPlTM4xMqQyK3fBhnDM2lPLfjFp86Xz6xJcL/bOlbvSErZT+\r\nGMJDhwBdwCpeP9Ep76VlAXWtYN0YL3XynjPzmN/WtO9ChIPjdNAemqJYmjSu\r\nBQ4JxbJNq3v+HTs6YLyhIeitptZQmS3oHjeplBWcWqKuXgFMHMv5mOXP7lfN\r\nQQBbFlwBf6/ErUtOmaN3GsX4cQNO4PzI1gmtwgflRJ3wCDCLUMYCVqpAEQmT\r\nTyjAv8L07p0sSpdB0ypLw57eyXkTSGvu7nVfsrSKWGoMpxSp7CBvPpqHZyQD\r\nGsgAXz0nMqpK8JkPr88l9GiJ1W4zHPUZem/lu9vK0yWDcG0iMtCV2Oe5owxr\r\nVyTMwbHK1eCnbd0bi9UgkAiBLaNlnGIdfuo=\r\n=GrUd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"525c1f4ed1ffc9200066c51bb05d96ee792141b9","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"8.19.2","description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","directories":{},"_nodeVersion":"16.18.1","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.0.4_1673355289019_0.3161122110553929","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"typescript-event-target","version":"1.0.5","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.0.5","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"def62097bd647db4ddfd3990df6bc1d7fade6fd0","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.0.5.tgz","fileCount":6,"integrity":"sha512-XA12H04oaUBcrD7El9L65to5gKe1gcvi5hzgLOez0Fn2EgGRZvPhGXyhnF1GX9YHBM+soY88zQ8IXOsg+cnqTg==","signatures":[{"sig":"MEUCIGK5M9I5iIg6mlWtCdee3LP/ujwyEon8n65JZY3Rsi2yAiEAxl11703kSvsbIrfz2BEYxT5eVd5FjDbN1UuyX3zrtp8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11217},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"89f2f51957c3e894ca853eb8730d1c9d7b10e777","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"9.5.1","description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.0.5_1688812933525_0.012465569439547908","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"typescript-event-target","version":"1.1.0","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.1.0","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"71278c3ee146cb0bef896e59c4b4e5d69f772d49","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.1.0.tgz","fileCount":6,"integrity":"sha512-PMrzUVryhnUq2n8M7tjNHNRuIHlUqly5RfGltBTpPCdVpbytgALTRDegF/t6+mFmmtBVhOqEYlbjVNBxwabIug==","signatures":[{"sig":"MEYCIQDtFaDQzTkHrwbYb6gSXqlK8xAZaNsRZ2wAGvYX8bBiiwIhAMk+EpZU67i+qpwmBKJqtVncajGlJoG9B2dWEs4R8ps4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11280},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"2dea2673a1da2074ec00742f18127dbb73ade05f","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"9.8.1","description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.1.0_1698085706537_0.44989016137175164","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"typescript-event-target","version":"1.1.1","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","_id":"typescript-event-target@1.1.1","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"homepage":"https://github.com/DerZade/typescript-event-target#readme","bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"dist":{"shasum":"20a6d491b77d2e37dc432c5394ab74c0d7065539","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.1.1.tgz","fileCount":6,"integrity":"sha512-dFSOFBKV6uwaloBCCUhxlD3Pr/P1a/tJdcmPrTXCHlEFD3faj0mztjcGn6VBAhQ0/Bdy8K3VWrrqwbt/ffsYsg==","signatures":[{"sig":"MEUCIEQuvGuHu8QXQ8kmS3Cp6RgxDP2yzy6RuT/Ryyel18VbAiEA97KtROKAyQnoKeg/rMxfnF05bsyoRDAPB07q6XXc/h8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/typescript-event-target@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13172},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"2b870bde24bd919b97df958e04d85d8270f94363","scripts":{"fmt":"prettier --write .","lint":"eslint --ext .js,.ts ./src","test":"tsd","build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts"},"typings":"./dist/index.d.ts","_npmUser":{"name":"derzade","email":"derzade@gmail.com"},"repository":{"url":"git+https://github.com/DerZade/typescript-event-target.git","type":"git"},"_npmVersion":"10.5.0","description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.24.1","tsup":"^6.3.0","prettier":"^2.7.1","typescript":"^4.8.4","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/typescript-event-target_1.1.1_1713817035512_0.9400098756823301","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"typescript-event-target","version":"1.1.2","description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","main":"./dist/index.js","types":"./dist/index.d.ts","typings":"./dist/index.d.ts","module":"./dist/index.mjs","homepage":"https://github.com/DerZade/typescript-event-target#readme","repository":{"type":"git","url":"git+https://github.com/DerZade/typescript-event-target.git"},"bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"scripts":{"build":"tsup --tsconfig ./tsconfig.json --dts --minify --format cjs,esm ./src/index.ts","lint":"eslint .","test":"tsd","fmt":"prettier --write ."},"keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","devDependencies":{"@eslint/js":"^9.20.0","eslint":"^9.20.1","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.3","jiti":"^2.4.2","prettier":"^3.5.1","tsd":"^0.31.2","tsup":"^8.3.6","typescript":"^5.7.3","typescript-eslint":"^8.24.1"},"gitHead":"90e2033d6ec9c85374367a19bbc1a87702dc663b","_id":"typescript-event-target@1.1.2","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-TvkrTUpv7gCPlcnSoEwUVUBwsdheKm+HF5u2tPAKubkIGMfovdSizCTaZRY/NhR8+Ijy8iZZUapbVQAsNrkFrw==","shasum":"e9f71d416fb160b376fbfc26d8c933fdb3773a27","tarball":"https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.1.2.tgz","fileCount":7,"unpackedSize":17964,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/typescript-event-target@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCtmZhbo77fvBWhktco1AkINY8u+fpaCSnUWhb3k4aJigIgBApMYLDkazhGpHIUXwPIfBk5EtVryAh2FxZcTWfFfkU="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:db620ad5-d640-4bdf-921c-8edc905f9c50"}},"directories":{},"maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/typescript-event-target_1.1.2_1766833346979_0.7244172625347092"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-25T09:32:35.075Z","modified":"2025-12-27T11:02:27.473Z","1.0.0":"2022-10-25T09:32:35.209Z","1.0.1":"2022-10-25T11:58:48.098Z","1.0.2":"2022-10-25T14:13:49.957Z","1.0.3":"2022-10-25T15:43:40.670Z","1.0.4":"2023-01-10T12:54:49.211Z","1.0.5":"2023-07-08T10:42:13.726Z","1.1.0":"2023-10-23T18:28:26.773Z","1.1.1":"2024-04-22T20:17:15.678Z","1.1.2":"2025-12-27T11:02:27.143Z"},"bugs":{"url":"https://github.com/DerZade/typescript-event-target/issues","email":"derzade@gmail.com"},"author":{"name":"Jonas Schade","email":"derzade@gmail.com"},"license":"MIT","homepage":"https://github.com/DerZade/typescript-event-target#readme","keywords":["event-target","typescript","EventTarget","ts","browser","typed","nodejs"],"repository":{"type":"git","url":"git+https://github.com/DerZade/typescript-event-target.git"},"description":"Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.","maintainers":[{"name":"derzade","email":"derzade@gmail.com"}],"readme":"# TypedEventTarget [![NPM](https://img.shields.io/npm/v/typescript-event-target?style=flat-square)](https://npmjs.com/package/typescript-event-target) [![JSR](https://img.shields.io/jsr/v/%40derzade/typescript-event-target?style=flat-square)](https://jsr.io/@derzade/typescript-event-target/) [![Deno](https://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno&labelColor=black&style=flat-square)](https://deno.land/x/typescript_event_target/) [![License](https://img.shields.io/github/license/derzade/typescript-event-target?style=flat-square)](/LICENSE)\n\n_Strictly typed [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) that directly extends `EventTarget` to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size._\n\n## Motivation\n\nSince `EventTarget` support landed in NodeJS v14.5, they are the only way to go forward, when talking about event driven JS.  \nBut `EventTarget` lacks in terms of developer experience and Typescript integration. To be specific:\n\n- No strictly typed event listeners & events\n- Missing proper IntelliSense integration\n- No auto-complete for event types\n\nThe weird thing is, that with JS-native objects, which implement `EventTarget` (like WebSocket, Worker or any HTML-Elements), you get all those features out of the box:\n\n<img alt=\"Visual Studio Code\" src=\"https://user-images.githubusercontent.com/12705416/203958225-7ecf9b96-8004-44d0-b670-8fcb1ae62394.png\" style=\"width: 75%\">\n\n**This package aims to** fix these shortcomings and **add all these missing features for custom EventTargets**.\n\n## Installation\n\n### NPM\n\nInstall the package:\n\n```\nnpm i --save typescript-event-target\n```\n\nThen import as follows:\n\n```ts\nimport { TypedEventTarget } from 'typescript-event-target';\n```\n\n### Deno\n\nEither install from [JSR](https://jsr.io/@derzade/typescript-event-target/doc/~/TypedEventListenerObject):\n\n```\ndeno add @derzade/typescript-event-target\n```\n\nor import directly form `deno.land/x/`:\n\n```ts\nimport { TypedEventTarget } from 'https://deno.land/x/typescript_event_target/mod.ts';\n```\n\n> :warning: Warning: It is best practice to \"pin\" to a particular version. `https://deno.land/x/` supports using git tags in the URL to direct you at a particular version. So to use version 1.0.0 of TypedEventTarget, you would want to import `https://deno.land/x/typescript_event_target@v1.0.0/mod.ts`.\n\n## Usage\n\n1. [Basic Example](#basic-example)\n1. [Dispatching Events](#dispatching-events)\n1. [Extending `TypedEventTarget`](#extending-typedeventtarget)\n1. [Different Event Types](#different-event-types)\n\n### Basic Example\n\n```ts\n// Step 1: Create an interface, which\n// includes all dispatchable events\ninterface MyEventMap {\n    hello: Event;\n    time: CustomEvent<number>;\n}\n\n// Step 2: Create your TypedEventTarget, with\n// the EventMap as the type parameter\nconst eventTarget = new TypedEventTarget<MyEventMap>();\n\n// Step 3: Strictly typed EventListeners 🎉\neventTarget.addEventListener('time', (event) => {\n    // event is of type CustomEvent<number>\n\n    const time = event.detail;\n\n    // time is of type number\n});\n```\n\n### Dispatching Events\n\n`TypedEventTarget` directly extends `EventTarget`, so [`dispatchEvent`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent) **works as expected**, but is marked as deprecated. The reason for this is that `dispatchEvent` cannot be strictly typed easily. Instead, `TypedEventTarget` introduces a `dispatchTypedEvent` method, which is strictly typed by taking an additional `_type` parameter (just used for type checking).\n\n```ts\ninterface MyEventMap {\n    time: CustomEvent<number>;\n}\n\nconst eventTarget = new TypedEventTarget<MyEventMap>();\n\neventTarget.dispatchTypedEvent(\n    'time',\n    new CustomEvent('time', { detail: Date.now() })\n);\n```\n\n### Extending `TypedEventTarget`\n\nInstead of directly instantiating `TypedEventTarget`, you can also extend it:\n\n```ts\ninterface MyEventMap {\n    time: CustomEvent<number>;\n    // [...]\n}\n\nclass MyEventTarget extends TypedEventTarget<MyEventMap> {\n    /* [...] */\n}\n\nconst myTarget = new MyEventTarget();\nmyTarget.addEventListener('time', (e) => {\n    /* [...] */\n});\n```\n\n### Different Event Types\n\nYour EventMap can include [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event) as well as any type, that extends [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). These can be native Events or even own classes:\n\n```ts\nclass MyEvent extends Event {\n    /* [...] */\n}\n\nclass MyEventMap {\n    boring: Event;\n    custom: CustomEvent<number>;\n    mine: MyEvent;\n    mouse: MouseEvent;\n    keyboard: KeyboardEvent;\n}\n\nconst eventTarget = new TypedEventTarget<MyEventMap>();\n\neventTarget.addEventListener('mine', (e) => {\n    // e is of type MyEvent\n});\n```\n\n## Bundle Size\n\nThis package mostly only contains TypeScript definitions. Therefore, it amounts up to basically no bundle size. The only thing that is bundled is the `dispatchTypedEvent`-method, which is just a simple wrapper around the native `dispatchEvent`-method.\n\n|           |      Deflate |        Brotli |      Gzip | Uncompressed |\n| --------- | -----------: | ------------: | --------: | -----------: |\n| ES Module | **92 Bytes** |      95 Bytes | 110 Bytes |    119 Bytes |\n| Common JS |    336 Bytes | **308 Bytes** | 354 Bytes |    599 Bytes |\n","readmeFilename":"README.md"}