Skip to content

Commit 9195b0a

Browse files
Clean up before release (#31)
1 parent 212bee9 commit 9195b0a

File tree

5 files changed

+6
-21
lines changed

5 files changed

+6
-21
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
2-
package-lock.json
32
dist

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import mitt, { WildcardHandler, type Emitter, type EventType, type Handler } from 'mitt'
2+
import mitt, { type Emitter, type EventType, type Handler } from 'mitt'
33

44
type Events = Record<EventType, unknown>
55
const BusContext = React.createContext<Emitter<Events> | null>(null)

rollup.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ test('emits events on context', function () {
3737
function onhello () {
3838
onhello.called = true
3939
}
40-
function Emitter (props) {
40+
function Emitter (_props) {
4141
useBus().emit('hello')
4242
return h('div')
4343
}
44-
function Listener (props) {
44+
function Listener (_props) {
4545
useBus().on('hello', onhello)
4646
return h('div')
4747
}
@@ -66,14 +66,14 @@ test('useListener', function () {
6666
function onhello () {
6767
onhello.called = true
6868
}
69-
function Emitter (props) {
69+
function Emitter (_props) {
7070
const bus = useBus()
7171
React.useEffect(function () {
7272
bus.emit('hello')
7373
})
7474
return h('div')
7575
}
76-
function Listener (props) {
76+
function Listener (_props) {
7777
useListener('hello', onhello)
7878
return h('div')
7979
}

0 commit comments

Comments
 (0)