Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@cloudflare/vitest-pool-workers": "^0.8.30",
"@cloudflare/workers-types": "^4.20250405.0",
"@types/bun": "latest",
"typed-htmx": "^0.3.1",
"vitest": "~3.1.0",
"wrangler": "^4.21.2"
}
Expand Down
10 changes: 10 additions & 0 deletions packages/api/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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 {}
}
}
Loading