Add Callback type
Adds a reusable Callback type that is applied to emitter.ts for improved readability/simplicity.
This commit is contained in:
1
src/common/types.ts
Normal file
1
src/common/types.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type Callback<T, R = void> = (t: T) => R
|
||||
Reference in New Issue
Block a user