# Type Alias Gösterimi Sorunu ve Çözümü

<figure><img src="/files/SKjvbDMDIFxRGSHU86WF" alt=""><figcaption></figcaption></figure>

### İçerikte alttaki sorunlara çözüm bulacağız:

1. "VS Code TypeScript type hover display issue"
2. "VS Code displaying type alias as template literal TypeScript"
3. "Change how VS Code shows TypeScript type aliases"
4. "TypeScript type resolution problem in VS Code hover"
5. "VS Code not resolving TypeScript type alias correctly"

## TypeScript ile basit **`type`** yapıları tanımladığımızda yeni isim yerine detaylarını gösteriyor.

```typescript
export type PairId = Readonly<`${AssetSymbol}_${AssetSymbol}`>
```

<figure><img src="/files/n2BsfYbb3Kqi0UcdhC07" alt=""><figcaption></figcaption></figure>

## Sorunu çözmek için **`alias`** isimli ek bir **`type`** daha tanımlıyoruz.

```typescript
type alias<t> = t & { _?: never }
export type PairId = alias<Readonly<`${AssetSymbol}_${AssetSymbol}`>>
```

<figure><img src="/files/7rhsUsZrUs59BK4uDHSf" alt=""><figcaption></figcaption></figure>

## Referanslar

{% embed url="<https://github.com/microsoft/TypeScript/issues/31940#issuecomment-1555533360>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yemreak.com/arsiv/yazilarim/type-alias-goesterimi-sorunu-ve-coezuemue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
