robaertschi.xyz/src/global.d.ts
2025-02-13 15:20:52 +01:00

11 lines
324 B
TypeScript

import "typed-htmx";
//
// A demo of how to augment foreign types with htmx attributes.
// In this case, Hono sources its types from its own namespace, so we do the same
// and directly extend its namespace.
declare module 'hono/jsx' {
namespace JSX {
interface HTMLAttributes extends HtmxAttributes { }
}
}