From 4acb4099bc8d007dff4b8a1e555529eb6e633889 Mon Sep 17 00:00:00 2001 From: Jenna Smith <175330+jjenzz@users.noreply.github.com> Date: Wed, 3 Jan 2024 00:11:23 +0000 Subject: [PATCH 1/2] docs: add extendable `CSSProperties` interface --- src/content/docs/en/guides/typescript.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/docs/en/guides/typescript.mdx b/src/content/docs/en/guides/typescript.mdx index 94958ecb2f841..d3b1321a2b883 100644 --- a/src/content/docs/en/guides/typescript.mdx +++ b/src/content/docs/en/guides/typescript.mdx @@ -196,6 +196,11 @@ declare namespace astroHTML.JSX { 'data-count'?: number; 'data-label'?: string; } + + // Add a CSS Custom Property to style object + interface CSSProperties { + '--theme-color'?: 'black' | 'white'; + } } ``` From 64a7aa4d5eb841da530e6356fd60ea07418844db Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Wed, 3 Jan 2024 11:24:37 -0400 Subject: [PATCH 2/2] sentence formatting Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> --- src/content/docs/en/guides/typescript.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/typescript.mdx b/src/content/docs/en/guides/typescript.mdx index d3b1321a2b883..77fc4b6ef5907 100644 --- a/src/content/docs/en/guides/typescript.mdx +++ b/src/content/docs/en/guides/typescript.mdx @@ -197,7 +197,7 @@ declare namespace astroHTML.JSX { 'data-label'?: string; } - // Add a CSS Custom Property to style object + // Add a CSS custom property to the style object interface CSSProperties { '--theme-color'?: 'black' | 'white'; }