pinecone-cli
Version:
Lovely VSCode theme builder
38 lines (37 loc) • 1.2 kB
TypeScript
/**
* VSCode package.json section.
* @example { "contributes": { "themes": [...] } }
*/
export type PackageTheme = {
label: string;
uiTheme: 'vs' | 'vs-dark';
path: string;
};
/**
* VSCode theme file.
*/
export type Theme = {
[key: string]: unknown;
name?: string;
type?: 'light' | 'dark';
colors?: Record<string, string>;
tokenColors?: unknown[];
semanticHighlighting?: boolean;
semanticTokenColors?: Record<string, unknown>;
};
export declare const styles: {
item: (message: string) => string;
string: (message: string) => string;
url: (message: string) => string;
};
export declare const log: {
list(title: string, items: string[]): void;
warn(message: string): void;
error(message: string): void;
};
export declare const toRelativePath: (to: string) => string;
export declare const readToString: (file: string) => string;
export declare const readToJson: <T>(file: string) => T;
export declare const writeToFile: (where: string, what: string) => void;
export declare const makeDirectory: (where: string) => void;
export declare const importFresh: <T>(modulePath: string) => Promise<Record<string, unknown> | T | undefined>;