> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/arsiv/programming/type-alias-gosterimi-sorunu-ve-cozumu.md).

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

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

![DALLE\_2023-10-26\_23.53.04\_-\_illustration\_of\_a\_very\_cute\_cat\_with\_lineal\_colors\_lying\_down\_on\_a\_desk\_with\_programming\_books\_a\_cup\_with\_the\_TypeScript\_logo\_and\_type\_symbols.png](https://i.imgur.com/OVs1soM.jpg)

### İç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}`>
```

![28z4XuP.png](https://i.imgur.com/28z4XuP.png)

## 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}`>>
```

![hfOWuBF.png](https://i.imgur.com/hfOWuBF.png)

## Referanslar

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.yemreak.com/arsiv/programming/type-alias-gosterimi-sorunu-ve-cozumu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
