---
id: aliases
title: Aliases
---
# Alias
Aliases can be defined for types. This can be helpful to reuse a complex expression.
Alias is only a syntax helper, and it has no representation in the type graph. This means that aliases cannot be decorated. Use [`model is`](./models.md) to provide an alternate name for a model.
Alias can be defined using the `alias` keyword
```typespec
alias Options = "one" | "two";
```microsoft/typespec
Publicmirrored fromhttps://github.com/microsoft/typespecAvailable
docs/language-basics/alias.md
16lines · modepreview