MultiTheme
Publisher: Arturo ArevaloThemes in package: 336
A collection of themes ported from TextMate
A collection of themes ported from TextMate
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #F8F8F8 | — |
| comment | #FF0080 | |
| constant | #4ADBC8 | |
| entity | #F46036 | |
| keyword | #4ADBC8 | |
| storage | #4ADBC8 | |
| string, meta.verbatim | #61CE3C | |
| support | #1B998B | |
| variable | — | |
| invalid.deprecated | #E71D36 | italic |
| invalid.illegal | #F8F8F8 | — |
| entity.other.inherited-class | #F46036 | italic |
| string constant.other.placeholder | #F46036 | |
| meta.function-call.py | #1B998B | |
| meta.tag, meta.tag entity | #1B998B | — |
| entity.name.section | #FFFFFF | |
| keyword.type.variant | #D5E0F3 | — |
| source.ocaml keyword.operator.symbol | #F8F8F8 | — |
| source.ocaml keyword.operator.symbol.infix | #1B998B | |
| source.ocaml keyword.operator.symbol.prefix | #1B998B | |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| source.ocaml constant.numeric.floating-point | — | underline |
| text.tex.latex meta.function.environment | — | — |
| text.tex.latex meta.function.environment meta.function.environment | — | — |
| text.tex.latex support.function | #4ADBC8 | |
| source.plist string.unquoted, source.plist keyword.operator | #FFFFFF | — |
| markup.deleted | #E71D36 | — |
| markup.inserted | #61CE3C | — |
| markup.changed | #4ADBC8 | — |
| sublimelinter.outline.illegal | #E71D36 | — |
| sublimelinter.underline.illegal | — | — |
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}!`;
}