mirror of
https://github.com/coder/code-server.git
synced 2026-05-10 14:27:26 +02:00
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