diff options
author | 2024-05-21 12:26:25 +0200 | |
---|---|---|
committer | 2024-05-21 12:26:25 +0200 | |
commit | bfe9c73536f0794e4f5ede5040adabbe0e705984 (patch) | |
tree | cbdc8aad96173007f06a5e6269922ae31dbbd8dc | |
parent | df7e56c9db78d5f1ba376713b25e2e0b40cfceac (diff) | |
download | astro-bfe9c73536f0794e4f5ede5040adabbe0e705984.tar.gz astro-bfe9c73536f0794e4f5ede5040adabbe0e705984.tar.zst astro-bfe9c73536f0794e4f5ede5040adabbe0e705984.zip |
fix type definition of IntrinsicAttributes's slot attribute (#11092)
-rw-r--r-- | .changeset/new-mice-occur.md | 5 | ||||
-rw-r--r-- | packages/astro/astro-jsx.d.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/new-mice-occur.md b/.changeset/new-mice-occur.md new file mode 100644 index 000000000..266b54652 --- /dev/null +++ b/.changeset/new-mice-occur.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Change `slot` attribute of `IntrinsicAttributes` to match the definition of `HTMLAttributes`'s own `slot` attribute of type `string | undefined | null` diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 22eccfcf3..a20baa508 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -22,7 +22,7 @@ declare namespace astroHTML.JSX { extends AstroBuiltinProps, AstroBuiltinAttributes, AstroClientDirectives { - slot?: string; + slot?: string | undefined | null; children?: Children; } |