BBash Shell
Publisher: P-man2976Themes in package: 2
The VSCode color theme of Mayuzumi Kai.
The VSCode color theme of Mayuzumi Kai.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| entity.name | #83b3bb | — |
| entity.name.tag | #b6eff6 | — |
| entity.other.attribute-name | #cccccc | — |
| variable, punctuation.definition.variable, support.variable.property.dom, support.variable.dom, support.variable.property, punctuation.separator.parameter, string.interpolated.pug variable | #56d9e9 | — |
| variable.language | #999999 | — |
| entity.name.function, support.class, support.function, new.expr entity.name.type, entity.other.inherited-class | #b6eff6 | — |
| variable.parameter, parameter.variable, meta.function.parameter variable, source.rust meta.type_params.rust | #04a2cc | — |
| punctuation, meta.brace | #999999 | — |
| variable.function | #86e4f0 | — |
| constant | #0aa0b3 | — |
| constant.numeric, constant.language | #05b6e6 | — |
| constant.character.escape | #a38d91 | — |
| keyword | #6b696c | — |
| keyword.control, storage, support.type | #0aa0b3 | — |
| keyword.operator | #cccccc | — |
| entity.name.type, support.type.primitive, support.type.builtin, meta.type.annotation entity.name.type, meta.type.parameters entity.name.type | #7bb4e2 | italic |
| string, punctuation.definition.string | #e9cacf | — |
| comment, punctuation.definition.comment | #40a010 | italic |
| invalid | #f00010 | — |
| invalid.deprecated | #e02040 | — |
| entity.name.section.markdown, markup.heading.setext | #9cc2c8 | — |
| punctuation.definition.list | #9cc2c8 | — |
| meta.separator.markdown | #9cc2c8 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| meta.link punctuation.definition.string, meta.image punctuation.definition.string | #baa2a6 | — |
| link, markup.underline.link, constant.other.reference.link.markdown | #05caff | — |
| markup.quote | #999999 | — |
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}!`;
}