# unified-signatures

Rule `typescript/unified-signatures`. Disallow two overloads that could be unified into one with a union or an optional/rest parameter

- Source: typescript
- Technologies: TypeScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 48.2M weekly downloads of presets that enable it
- Trend: +32.9% last quarter
- Rank: #260 by reach, #1069 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `@typescript-eslint/unified-signatures` | no | no | package `@typescript-eslint/eslint-plugin` | [docs](https://typescript-eslint.io/rules/unified-signatures) |
| Oxlint | `typescript/unified-signatures` | no | no | plugin `typescript`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/typescript/unified-signatures.html) |
| Biome | `style/useUnifiedTypeSignatures` | no | unsafe | group style, since 2.1.0 | [docs](https://biomejs.dev/linter/rules/use-unified-type-signatures/) |

## Code examples

### Incorrect: the rule reports this

```ts
function x(y: number): void;
function x(y: string): void;
```

```ts
function y(): void;
function y(...x: number[]): void;
```

### Correct: the rule accepts this

```ts
function x(y: number | string): void;
```

```ts
function y(...x: number[]): void;
```

```ts
// This rule won't check overload signatures with different rest parameter types.
// See https://github.com/microsoft/TypeScript/issues/5077
function f(...a: number[]): void;
function f(...a: string[]): void;
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import tseslint from "typescript-eslint";

export default [
  {
    plugins: { "@typescript-eslint": tseslint.plugin },
    rules: {
      "@typescript-eslint/unified-signatures": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "typescript/unified-signatures": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "useUnifiedTypeSignatures": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [typescript-eslint strict](https://lintradar.dev/presets/typescript-eslint-strict.md) | ESLint | `@typescript-eslint/eslint-plugin` | 32 | 175.9M | +29.5% |
| [typescript-eslint strict type-checked](https://lintradar.dev/presets/typescript-eslint-strict-type-checked.md) | ESLint | `@typescript-eslint/eslint-plugin` | 75 | 175.9M | +29.5% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [Nuxt](https://lintradar.dev/presets/nuxt.md) | ESLint | `@nuxt/eslint-config` | 188 | 1.5M | +72.8% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |
| [eslint-config-love](https://lintradar.dev/presets/love.md) | ESLint | `eslint-config-love` | 258 | 171.7K | +39.3% |
| [Alloy](https://lintradar.dev/presets/alloy.md) | ESLint | `eslint-config-alloy` | 166 | 31.4K | +32.4% |

## Related rules

- [typescript/return-await](https://lintradar.dev/rules/typescript/return-await.md): Enforce consistent awaiting of returned promises
- [typescript/no-dynamic-delete](https://lintradar.dev/rules/typescript/no-dynamic-delete.md): Disallow using the `delete` operator on computed key expressions
- [typescript/consistent-type-definitions](https://lintradar.dev/rules/typescript/consistent-type-definitions.md): Enforce type definitions to consistently use either `interface` or `type`
- [typescript/no-non-null-asserted-nullish-coalescing](https://lintradar.dev/rules/typescript/no-non-null-asserted-nullish-coalescing.md): Disallow non-null assertions in the left operand of a nullish coalescing operator
- [typescript/no-inferrable-types](https://lintradar.dev/rules/typescript/no-inferrable-types.md): Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean
- [typescript/prefer-for-of](https://lintradar.dev/rules/typescript/prefer-for-of.md): Enforce the use of `for-of` loop over the standard `for` loop where possible

---

Web page: https://lintradar.dev/rules/typescript/unified-signatures. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
