Skip to content

Commit 3ff20a5

Browse files
MeAkibAndrewKushnir
authored andcommitted
refactor(docs-infra): remove deprecated h.JSX.HTMLAttributes usage
Import HTMLAttributes directly from preact to address deprecation warning in header-api.tsx
1 parent b4f584c commit 3ff20a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {Fragment, h} from 'preact';
9+
import {Fragment, h, HTMLAttributes} from 'preact';
1010
import {EntryType, isDocEntryWithSourceInfo, PipeEntry} from '../entities.mjs';
1111
import {DocEntryRenderable, PipeEntryRenderable} from '../entities/renderables.mjs';
1212
import {
@@ -73,7 +73,7 @@ export function HeaderApi(props: {
7373
}
7474

7575
function statusTag(entry: DocEntryRenderable) {
76-
let tag: h.JSX.HTMLAttributes<HTMLDivElement> | null = null;
76+
let tag: HTMLAttributes<HTMLDivElement> | null = null;
7777

7878
// Cascading Deprecated > Stable > Developer Preview > Experimental
7979

0 commit comments

Comments
 (0)