> 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.

# no-type-alias

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


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

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

## Rule Details

Disallow type aliases.

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

```ts
type Name = string;
```

Examples of **correct** code:

```ts
interface Name {
  value: string;
}
```

## Original Documentation

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