Chenloong999's picture
backup 2026-08-23T20:24:25.191693
e5de7b5 verified
Raw History Blame Contribute Delete
295 Bytes
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>;
};