diff options
| author | Jason Miller <[email protected]> | 2020-07-13 17:03:14 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-13 17:03:14 -0400 |
| commit | 76a353cb867a7302a9ddfb9a2a96ab5364af1db9 (patch) | |
| tree | b3683b60f822c8dfdbf2bce1dac381ad67d86c2f | |
| parent | 2c85f0900f5fd1d12844d0f61cafa27a739d4346 (diff) | |
| parent | 244cac2aa3d6831774129d6dc4942465dcef8099 (diff) | |
Merge branch 'master' into expose-all
| -rw-r--r-- | .github/workflows/compressed-size.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/main.yml | 8 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/index.ts | 2 |
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: @@ -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>; |
