Download packages/plugin/src/v2/promise/registration.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/promise/registration.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/plugin/src/v2/promise/registration.ts
-
curl -L -o registration.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/promise/registration.ts
287 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> | |
| } | |