CodeTheme
interface exported by @mwillbanks/tuil-code.
interface
Public interface exported by @mwillbanks/tuil-code.
export interface CodeTheme {
readonly tokenStyles: Readonly<
Record<string, { readonly foreground?: string; readonly bold?: boolean }>
>;
readonly diagnosticStyles: Readonly<
Record<CodeDiagnostic["severity"], { readonly foreground: string }>
>;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
tokenStyles | Readonly<Record<string, { readonly foreground?: string; readonly bold?: boolean; }>> | Yes | The tokenStyles member uses the Readonly<Record<string, { readonly foreground?: string; readonly bold?: boolean; }>> contract. | — |
diagnosticStyles | Readonly<Record<"info" | "warning" | "error", { readonly foreground: string; }>> | Yes | The diagnosticStyles member uses the Readonly<Record<"info" | "warning" | "error", { readonly foreground: string; }>> contract. | — |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference