aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/compressed-size.yml2
-rw-r--r--.github/workflows/main.yml8
-rw-r--r--README.md2
-rw-r--r--src/index.ts2
4 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml
index d346ef8..ed9f872 100644
--- a/.github/workflows/compressed-size.yml
+++ b/.github/workflows/compressed-size.yml
@@ -9,6 +9,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: preactjs/compressed-size-action@v1
+ - uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9d3aacf..b758474 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,6 +1,12 @@
name: CI
-on: [push]
+on:
+ pull_request:
+ branches:
+ - '**'
+ push:
+ branches:
+ - master
jobs:
build:
diff --git a/README.md b/README.md
index 3a5d4a2..5220f19 100644
--- a/README.md
+++ b/README.md
@@ -115,7 +115,7 @@ const emitter: mitt.Emitter = mitt();
Mitt: Tiny (~200b) functional event emitter / pubsub.
-Returns **Mitt**
+Returns **Mitt**
### emit
diff --git a/src/index.ts b/src/index.ts
index d68188d..0350868 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -3,7 +3,7 @@ export type EventType = string | symbol;
// An event handler can take an optional event argument
// and should not return a value
export type Handler = (event?: any) => void;
-export type WildcardHandler= (type: EventType, event?: any) => void
+export type WildcardHandler = (type: EventType, event?: any) => void
// An array of all currently registered event handlers for a type
export type EventHandlerList = Array<Handler>;