effectFnImplicitAny

August 4, 2026 ยท View on GitHub

Mirrors noImplicitAny for unannotated Effect.fn, Effect.fnUntraced, and Effect.fnUntracedEager callback parameters when no outer contextual function type exists. Requires TS's noImplicitAny: true

PropertyValue
CategoryCorrectness
Default severityerror
FixableNo
Effect versionsv3, v4
Diagnostic codesTS377062
Language Service nameeffectFnImplicitAny
Oxlint nameeffecttsgo/effect-fn-implicit-any

Preview

import { Effect } from "effect"

export const preview = Effect.fn("preview")((input) => Effect.succeed(input))
/**
                                             ^^^^^ effecttsgo(effect-fn-implicit-any): Parameter `input` implicitly has type `any` in `Effect.fn`, `Effect.fnUntraced`, or `Effect.fnUntracedEager`. No parameter type is available from an explicit annotation or contextual function type.
*/

Language Service Configuration

See the Language Service setup guide for installation instructions.

{
  "$schema": "./node_modules/@effect/tsgo/schema.json",
  "compilerOptions": {
    "plugins": [
      {
        "name": "@effect/language-service",
        "diagnosticSeverity": {
          "effectFnImplicitAny": "warning"
        }
      }
    ]
  }
}

Oxlint Configuration

See the Oxlint setup guide for installation and patching instructions.

{
  "$schema": "./node_modules/@effect/tsgo/oxlint-schema.json",
  "options": {
    "typeAware": true
  },
  "plugins": ["effecttsgo"],
  "rules": {
    "effecttsgo/effect-fn-implicit-any": "warn"
  }
}