Skip to content

Commit

Permalink
Fixed #619
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 17, 2024
1 parent 124e257 commit 2bf946f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Go to the `v1` branch to see the changelog of Lume 1.

## [2.2.2] - Unreleased
### Fixed
- Extended Preact types with Lume's custom attributes [#619].
- Hot reload: Ensure sockets are open before send updates [#614], [#615].
- Updated dependencies: `tailwindcss`, `terser`, `sass`, `std`, `react-render-to-string`, `xml`, `esbuild`, `vento`, `unocss`.

Expand Down Expand Up @@ -409,6 +410,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
[#610]: https://github.com/lumeland/lume/issues/610
[#614]: https://github.com/lumeland/lume/issues/614
[#615]: https://github.com/lumeland/lume/issues/615
[#619]: https://github.com/lumeland/lume/issues/619

[2.2.2]: https://github.com/lumeland/lume/compare/v2.2.1...HEAD
[2.2.1]: https://github.com/lumeland/lume/compare/v2.2.0...v2.2.1
Expand Down
13 changes: 13 additions & 0 deletions plugins/jsx_preact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,16 @@ export default function (userOptions?: Options) {
});
};
}

/** Extends HTMLAttributes interface */
declare global {
namespace preact.JSX {
interface HTMLAttributes {
/** Custom attribute used by inline plugin */
inline?: boolean | undefined;

/** Custom attribute used by transform images plugin */
"transform-images"?: string | undefined;
}
}
}

0 comments on commit 2bf946f

Please sign in to comment.