Add Effect-native core event system (#27415)
This commit is contained in:
parent
73cdba959b
commit
e11e089e42
43 changed files with 1509 additions and 526 deletions
11
packages/core/src/location.ts
Normal file
11
packages/core/src/location.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { Context, Schema } from "effect"
|
||||
|
||||
export * as Location from "./location"
|
||||
|
||||
export const Ref = Schema.Struct({
|
||||
directory: Schema.String,
|
||||
workspaceID: Schema.optional(Schema.String),
|
||||
}).annotate({ identifier: "Location.Ref" })
|
||||
export type Ref = typeof Ref.Type
|
||||
|
||||
export class Service extends Context.Service<Service, Ref>()("@opencode/Location") {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue