UNPKG

@shopify/theme-language-server-common

Version:

<h1 align="center" style="position: relative;" > <br> <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160"> <br> Theme Language Server </h1>

30 lines (29 loc) 931 B
export type GetThemeSettingsSchemaForURI = (uri: string) => Promise<SettingsSchemaJSONFile>; export type SettingsSchemaJSONFile = (ThemeInfo | SettingsCategory)[]; export interface ThemeInfo { name: string; theme_name: string; theme_author: string; theme_version: string; theme_documentation_url: string; theme_support_url?: string; theme_support_email?: string; } export interface SettingsCategory { name: string; settings: Setting[]; } export type Setting = SideBarSetting | InputSetting; export interface SideBarSetting { type: string; content: string; } export interface InputSetting { type: string; id: string; label: string; default?: number | string | boolean | string[]; info?: string; } export declare function isSettingsCategory(x: ThemeInfo | SettingsCategory): x is SettingsCategory; export declare function isInputSetting(x: Setting): x is InputSetting;