File size: 287 Bytes
0dbc9de
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
export interface Registration {
  readonly dispose: () => Promise<void>
}

export interface Reload {
  readonly reload: () => Promise<void>
}

export type Hooks<Spec> = {
  readonly [Name in keyof Spec]: (callback: (input: Spec[Name]) => Promise<void> | void) => Promise<Registration>
}