File size: 295 Bytes
e5de7b5 | 1 2 3 4 5 6 7 8 9 10 | 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>;
};
|