Download packages/plugin/src/v2/effect/registration.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/effect/registration.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/plugin/src/v2/effect/registration.ts
-
curl -L -o registration.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/effect/registration.ts
379 Bytes
| import type { Effect, Scope } from "effect" | |
| export interface Registration { | |
| readonly dispose: Effect.Effect<void> | |
| } | |
| export interface Reload { | |
| readonly reload: () => Effect.Effect<void> | |
| } | |
| export type Hooks<Spec> = { | |
| readonly [Name in keyof Spec]: ( | |
| callback: (input: Spec[Name]) => Effect.Effect<void> | void, | |
| ) => Effect.Effect<Registration, never, Scope.Scope> | |
| } | |