0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00
hono/deno_dist/jsx
Yusuke Wada b3e465a103
feat: types for JSX elements (#1614)
* feat: types for JSX elements

* make it minimal

* add children

* denoify

* fixed some attributes

* denoify

* `dateTime` to `datetime`

* remove `onxxx`

* feat: Declare in the Hono namespace so that it can be overridden by the user. (#1616)

* feat: Declare in the Hono namespace so that it can be overridden by the user.

* feat: Use interface instead of type to enable overwriting

```ts
declare global {
  namespace JSX {
    interface IntrinsicElements {
      'my-custom-element': Hono.HTMLAttributes & {
        'x-event'?: 'click' | 'scroll';
      }
    }
  }
}
```

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>

* remove `onxxx`

* denoify

---------

Co-authored-by: Taku Amano <taku@taaas.jp>
2023-10-27 06:21:33 +09:00
..
index.ts feat: types for JSX elements (#1614) 2023-10-27 06:21:33 +09:00
intrinsic-elements.ts feat: types for JSX elements (#1614) 2023-10-27 06:21:33 +09:00
jsx-dev-runtime.ts feat: introduce "Helpers" (#1353) 2023-08-21 15:22:37 +09:00
jsx-runtime.ts feat: introduce "Helpers" (#1353) 2023-08-21 15:22:37 +09:00