Add Callback type

Adds a reusable Callback type that is applied to emitter.ts for improved
readability/simplicity.
This commit is contained in:
G r e y
2020-08-08 22:18:49 -05:00
parent 8d03c22cb0
commit a0ff2014c3
2 changed files with 6 additions and 3 deletions

1
src/common/types.ts Normal file
View File

@@ -0,0 +1 @@
export type Callback<T, R = void> = (t: T) => R