Explorar o código

core: let models layer infer its own type so layer composition no longer requires matching explicit requirements

Dax Raad hai 3 meses
pai
achega
e92b1fe7d7
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      packages/core/src/models.ts

+ 1 - 3
packages/core/src/models.ts

@@ -112,9 +112,7 @@ export interface Interface {
 
 export class Service extends Context.Service<Service, Interface>()("@opencode/ModelsDev") {}
 
-type Requirements = AppFileSystem.Service | HttpClient.HttpClient
-
-export const layer: Layer.Layer<Service, never, Requirements> = Layer.effect(
+export const layer = Layer.effect(
   Service,
   Effect.gen(function* () {
     const fs = yield* AppFileSystem.Service