Skip to content

Commit

Permalink
addition: allow specifying null type
Browse files Browse the repository at this point in the history
  • Loading branch information
admirsaheta committed Mar 26, 2024
1 parent c663f20 commit e2f956b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export type HTMLTag = keyof astroHTML.JSX.DefinedIntrinsicElements;
/** The built-in attributes for any known HTML or SVG element name */
export type HTMLAttributes<Tag extends HTMLTag> = Omit<
astroHTML.JSX.IntrinsicElements[Tag],
keyof Omit<AstroBuiltinAttributes, 'class:list'>
keyof Omit<AstroBuiltinAttributes, 'class:list'>
> & {
[key: string]: string | number | boolean | undefined;
[key: string]: string | number | boolean | null | undefined;
};

/**
Expand Down

0 comments on commit e2f956b

Please sign in to comment.