Identifiers
Identifiers are used to name models, enums, properties, and other entities in TypeSpec. An identifier is a sequence of one or more characters that must start with a letter, emoji, underscore, or dollar sign, and be followed by letters, numbers, emoji, underscores, or dollar signs. TypeSpec implements UAX31-R1b stable identifiers with the emoji profile.
Examples:
- โ
cat
- โ
Dog
- โ
_Item2
- โ
$money$
- โ
๐
- โ
๐
- โ
1cat
- โ
*dog
Reserved identifiers
Section titled โReserved identifiersโAll keywords are reserved identifiers in TypeSpec. However they can still be used when escaping with wrapping with ``` characters.
model `enum` {}