aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Miller <[email protected]>2020-07-13 17:03:14 -0400
committerGitHub <[email protected]>2020-07-13 17:03:14 -0400
commit76a353cb867a7302a9ddfb9a2a96ab5364af1db9 (patch)
treeb3683b60f822c8dfdbf2bce1dac381ad67d86c2f
parent2c85f0900f5fd1d12844d0f61cafa27a739d4346 (diff)
parent244cac2aa3d6831774129d6dc4942465dcef8099 (diff)
Merge branch 'master' into expose-all
-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>;