> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# adjacent-overload-signatures

[Added in v0.1.4](https://github.com/web-infra-dev/rslint/releases/tag/v0.1.4)
## Configuration

| Preset                            | Configured Value |
| --------------------------------- | ---------------- |
| ✅ ts.configs.stylistic            | `"error"`        |
| ✅ ts.configs.stylisticTypeChecked | `"error"`        |


```ts title=rslint.config.ts
import { defineConfig, ts } from '@rslint/core';

export default defineConfig([
  ts.configs.recommended,
  {
    rules: {
      '@typescript-eslint/adjacent-overload-signatures': 'error',
    },
  },
]);
```

## Rule Details

Require that function overload signatures be consecutive. When function overload signatures are not adjacent to each other, it can be difficult to read and understand the complete set of overloads for a given function.

Examples of **incorrect** code for this rule:

```typescript
declare function foo(s: string): void;
declare function bar(): void;
declare function foo(n: number): void;

class MyClass {
  foo(s: string): void;
  bar(): void;
  foo(n: number): void;
}
```

Examples of **correct** code for this rule:

```typescript
declare function foo(s: string): void;
declare function foo(n: number): void;
declare function bar(): void;

class MyClass {
  foo(s: string): void;
  foo(n: number): void;
  bar(): void;
}
```

## Original Documentation

- [typescript-eslint: adjacent-overload-signatures](https://typescript-eslint.io/rules/adjacent-overload-signatures)
- [Source code](https://github.com/typescript-eslint/typescript-eslint/blob/v8.67.0/packages/eslint-plugin/src/rules/adjacent-overload-signatures.ts)
