RDM Themes
Publisher: reesemcleanThemes in package: 1
Custom Themes
Custom Themes
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| source | #000000 | |
| comment | #AAAAAA | italic |
| keyword, storage | #004E8A | bold |
| entity.name.function, keyword.other.name-of-parameter.objc | #4F4F4F | bold |
| entity.name | #004E8A | — |
| entity.other.inherited-class | #7463CA | italic |
| support | #2F6F9F | — |
| constant.numeric | #CF4F5F | — |
| variable | #000000 | — |
| constant | #CF4F5F | — |
| variable.other.constant | #CF4F5F | — |
| constant.language | #0B51A6 | — |
| string | #CF4F5F | |
| support.function | #0B51A6 | — |
| support.type | #0B51A6 | — |
| entity.name.tag, declaration.tag | #2F6F9F | |
| entity.other.attribute-name | #4F9FD0 | italic |
| meta.tag | #000000 | — |
| invalid | #FFFFFF | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #000000 | |
| markup.inserted | #E6E1DC | — |
| markup.deleted | #E6E1DC | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}