Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "ts-bus", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -9,5 +9,13 @@ # TS Bus | ||
Use your favourite npm client to install ts-bus. Types should be included. | ||
Use your favourite npm client to install ts-bus. Types are included automatically. | ||
Npm: | ||
```bash | ||
npm install ts-bus | ||
``` | ||
Yarn: | ||
```bash | ||
yarn add ts-bus | ||
@@ -42,3 +50,4 @@ ``` | ||
// Personally I prefer to put the event type inline as it is more concise: | ||
// Personally I prefer to put the event type | ||
// inline as it is more concise: | ||
export const otherEvent = createEventCreator<{ | ||
@@ -49,4 +58,6 @@ type: "OTHER_EVENT"; | ||
// Note we have to pass in a string as typescript does not allow for a way to create a string from typeland | ||
// This is typed however so you should have autocompletion and should not find yourself making errors | ||
// Note we have to pass in a string as typescript does | ||
// not allow for a way to create a string from typeland | ||
// This is typed however so you should have | ||
// autocompletion and should not find yourself making errors | ||
``` | ||
@@ -53,0 +64,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8572
172