Error when using `Layer.provide` with `HttpApi` in TypeScript

Am I doing this wrong?
export const Api = HttpApi.make('API')
  .add(authApiGroup)
  .add(todosApiGroup)
  .pipe(Layer.provide(AuthService.Default));


Getting an error on the provide: Types of parameters 'self' and '_' are incompatible.
Property '[LayerTypeId]' is missing in type 'HttpApi<"API", HttpApiGroup<"Auth", HttpApiEndpoint<"sign-up", "POST", never, never, { readonly email: string; readonly password: string; }, never, { readonly id: string; readonly email: string; }, { readonly error: string; }, never, never> | HttpApiEndpoint<...> | HttpApiEndpoint<...>, never, never, false> | HttpAp...' but required in type 'Layer<unknown, unknown, unknown>'.ts(2345)
Was this page helpful?