From 22f9dc8895f7f522511253e682fe6cd41f95d015 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 25 May 2022 10:49:20 +0100 Subject: [PATCH] Use single-line syntax for private types comments (#8420) This prevents the comments from appearing in editors --- types/config.d.ts | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/types/config.d.ts b/types/config.d.ts index b1612d031..b04e16b1c 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -64,11 +64,11 @@ type ExperimentalConfig = Expand<'all' | Partial // Theme related config interface ThemeConfig { - /** Responsiveness */ + // Responsiveness screens: ResolvableTo - /** Reusable base configs */ + // Reusable base configs colors: ResolvableTo spacing: ResolvableTo - /** Components */ + // Components container: ResolvableTo< Partial<{ screens: ScreensConfig @@ -92,7 +92,7 @@ interface ThemeConfig { }> > - /** Utilities */ + // Utilities inset: ThemeConfig['spacing'] zIndex: ResolvableTo order: ResolvableTo @@ -215,7 +215,7 @@ interface ThemeConfig { willChange: ResolvableTo content: ResolvableTo - /** Custom */ + // Custom [key: string]: any } @@ -240,7 +240,7 @@ type ValueType = | 'relative-size' | 'shadow' export interface PluginAPI { - /** for registering new static utility styles */ + // for registering new static utility styles addUtilities( utilities: RecursiveKeyValuePair | RecursiveKeyValuePair[], options?: Partial<{ @@ -248,7 +248,7 @@ export interface PluginAPI { respectImportant: boolean }> ): void - /** for registering new dynamic utility styles */ + // for registering new dynamic utility styles matchUtilities( utilities: KeyValuePair RecursiveKeyValuePair>, options?: Partial<{ @@ -259,7 +259,7 @@ export interface PluginAPI { supportsNegativeValues: boolean }> ): void - /** for registering new static component styles */ + // for registering new static component styles addComponents( components: RecursiveKeyValuePair | RecursiveKeyValuePair[], options?: Partial<{ @@ -267,7 +267,7 @@ export interface PluginAPI { respectImportant: boolean }> ): void - /** for registering new dynamic component styles */ + // for registering new dynamic component styles matchComponents( components: KeyValuePair RecursiveKeyValuePair>, options?: Partial<{ @@ -278,20 +278,20 @@ export interface PluginAPI { supportsNegativeValues: boolean }> ): void - /** for registering new base styles */ + // for registering new base styles addBase(base: RecursiveKeyValuePair | RecursiveKeyValuePair[]): void - /** for registering custom variants */ + // for registering custom variants addVariant(name: string, definition: string | string[] | (() => string) | (() => string)[]): void - /** for looking up values in the user’s theme configuration */ + // for looking up values in the user’s theme configuration theme: ( path?: string, defaultValue?: TDefaultValue ) => TDefaultValue - /** for looking up values in the user’s Tailwind configuration */ + // for looking up values in the user’s Tailwind configuration config: (path?: string, defaultValue?: TDefaultValue) => TDefaultValue - /** for checking if a core plugin is enabled */ + // for checking if a core plugin is enabled corePlugins(path: string): boolean - /** for manually escaping strings meant to be used in class names */ + // for manually escaping strings meant to be used in class names e: (className: string) => string } export type PluginCreator = (api: PluginAPI) => void @@ -318,7 +318,7 @@ interface OptionalConfig { theme: Partial }> corePlugins: Partial plugins: Partial - /** Custom */ + // Custom [key: string]: any }