We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c34931 commit c7f8a06Copy full SHA for c7f8a06
website/src/pages/index.mdx
@@ -726,7 +726,7 @@ Examples:
726
UserRole['ADMINISTRATOR'] = 'administrator';
727
})(UserRole || (UserRole = {}));
728
729
- // ✅ Use literal types
+ // ✅ Use literal types - Types are stripped during transpilation
730
type UserRole = 'guest' | 'moderator' | 'administrator';
731
732
const isGuest = (role: UserRole) => role === 'guest';
0 commit comments