HCO
Publisher: hisbvdisThemes in package: 4
VS Code editor theme
VS Code editor theme
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 |
|---|---|---|
| comment, string.regexp punctuation.definition.string, constant.character.escape | #9e9e9e | — |
| variable.other.jsdoc, meta.embedded, support.type.property-name.json, support.type.property-name, constant.other.option, entity.name.type.module, entity.name.type.enum, entity.name.type.namespace, punctuation.definition.group, punctuation.definition.character-class | #1F2328 | — |
| storage, keyword, punctuation.accessor.optional, keyword.operator.new, keyword.operator.expression, variable.language, keyword.operator, storage.type.function.arrow, punctuation.separator.key-value, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #000be0 | — |
| constant.language, constant.numeric, keyword.other.unit, keyword.operator.arithmetic | #0451a5 | — |
| entity.name.type.class, entity.other.inherited-class, support.class | #506795 | — |
| entity.name.function, support.function | #1492b8 | — |
| keyword.control | #9b61d1 | — |
| entity.name.tag, support.class.component | #a80000 | — |
| entity.other.attribute-name | #ce8b7e | — |
| string, markup.inline.raw | #3d922a | — |
| markup.heading, markup.heading markup.inline.raw, markup.heading string, constant.character | #a21319 | — |
| meta.parameters variable.parameter, meta.arrow variable.parameter, meta.var variable.parameter | #a36629 | — |
| support.type, entity.name.type, meta.interface entity.other.inherited-class | #9c9121 | — |
| markup.heading, markup.bold | — | bold |
| keyword.control, comment, markup.italic | — | italic |
| comment, string.regexp punctuation.definition.string, constant.character.escape | #9e9e9e | — |
| variable.other.jsdoc, meta.embedded, support.type.property-name.json, support.type.property-name, constant.other.option, entity.name.type.module, entity.name.type.enum, entity.name.type.namespace, punctuation.definition.group, punctuation.definition.character-class | #1F2328 | — |
| storage, keyword, punctuation.accessor.optional, keyword.operator.new, keyword.operator.expression, variable.language, keyword.operator, storage.type.function.arrow, punctuation.separator.key-value, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #000be0 | — |
| constant.language, constant.numeric, keyword.other.unit, keyword.operator.arithmetic | #0451a5 | — |
| entity.name.type.class, entity.other.inherited-class, support.class | #506795 | — |
| entity.name.function, support.function | #1492b8 | — |
| keyword.control | #9b61d1 | — |
| entity.name.tag, support.class.component | #a80000 | — |
| entity.other.attribute-name | #ce8b7e | — |
| string, markup.inline.raw | #3d922a | — |
| markup.heading, markup.heading markup.inline.raw, markup.heading string, constant.character | #a21319 | — |
| meta.parameters variable.parameter, meta.arrow variable.parameter, meta.var variable.parameter | #a36629 | — |
| support.type, entity.name.type, meta.interface entity.other.inherited-class | #9c9121 | — |
| markup.heading, markup.bold | — | bold |
| keyword.control, comment, markup.italic | — | italic |
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}!`;
}