Skip to content

Commit b98bd37

Browse files
v2: fix missing exported types (#7761)
fix: missing exported types
1 parent c42693f commit b98bd37

File tree

4 files changed

+66
-6
lines changed

4 files changed

+66
-6
lines changed

packages/docs/src/routes/api/qwik/api.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,20 @@
756756
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/jsx-runtime.ts",
757757
"mdFile": "core.h.md"
758758
},
759+
{
760+
"name": "HTMLElementAttrs",
761+
"id": "htmlelementattrs",
762+
"hierarchy": [
763+
{
764+
"name": "HTMLElementAttrs",
765+
"id": "htmlelementattrs"
766+
}
767+
],
768+
"kind": "Interface",
769+
"content": "```typescript\nexport interface HTMLElementAttrs extends HTMLAttributesBase, FilterBase<HTMLElement> \n```\n**Extends:** HTMLAttributesBase, FilterBase&lt;HTMLElement&gt;",
770+
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts",
771+
"mdFile": "core.htmlelementattrs.md"
772+
},
759773
{
760774
"name": "implicit$FirstArg",
761775
"id": "implicit_firstarg",
@@ -1405,7 +1419,7 @@
14051419
}
14061420
],
14071421
"kind": "TypeAlias",
1408-
"content": "The DOM props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikHTMLElements = {\n [tag in keyof HTMLElementTagNameMap]: Augmented<HTMLElementTagNameMap[tag], SpecialAttrs[tag]> & HTMLElementAttrs & QwikAttributes<HTMLElementTagNameMap[tag]>;\n};\n```\n**References:** [QwikAttributes](#qwikattributes)",
1422+
"content": "The DOM props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikHTMLElements = {\n [tag in keyof HTMLElementTagNameMap]: Augmented<HTMLElementTagNameMap[tag], SpecialAttrs[tag]> & HTMLElementAttrs & QwikAttributes<HTMLElementTagNameMap[tag]>;\n};\n```\n**References:** [HTMLElementAttrs](#htmlelementattrs)<!-- -->, [QwikAttributes](#qwikattributes)",
14091423
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts",
14101424
"mdFile": "core.qwikhtmlelements.md"
14111425
},
@@ -1545,7 +1559,7 @@
15451559
}
15461560
],
15471561
"kind": "TypeAlias",
1548-
"content": "The SVG props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikSVGElements = {\n [K in keyof Omit<SVGElementTagNameMap, keyof HTMLElementTagNameMap>]: SVGProps<SVGElementTagNameMap[K]>;\n};\n```",
1562+
"content": "The SVG props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikSVGElements = {\n [K in keyof Omit<SVGElementTagNameMap, keyof HTMLElementTagNameMap>]: SVGProps<SVGElementTagNameMap[K]>;\n};\n```\n**References:** [SVGProps](#svgprops)",
15491563
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts",
15501564
"mdFile": "core.qwiksvgelements.md"
15511565
},
@@ -2109,6 +2123,20 @@
21092123
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts",
21102124
"mdFile": "core.svgattributes.md"
21112125
},
2126+
{
2127+
"name": "SVGProps",
2128+
"id": "svgprops",
2129+
"hierarchy": [
2130+
{
2131+
"name": "SVGProps",
2132+
"id": "svgprops"
2133+
}
2134+
],
2135+
"kind": "Interface",
2136+
"content": "```typescript\nexport interface SVGProps<T extends Element> extends SVGAttributes, QwikAttributes<T> \n```\n**Extends:** [SVGAttributes](#svgattributes)<!-- -->, [QwikAttributes](#qwikattributes)<!-- -->&lt;T&gt;",
2137+
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts",
2138+
"mdFile": "core.svgprops.md"
2139+
},
21122140
{
21132141
"name": "sync$",
21142142
"id": "sync_",

packages/docs/src/routes/api/qwik/index.mdx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,16 @@ any[]
15101510
15111511
[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/jsx-runtime.ts)
15121512
1513+
## HTMLElementAttrs
1514+
1515+
```typescript
1516+
export interface HTMLElementAttrs extends HTMLAttributesBase, FilterBase<HTMLElement>
1517+
```
1518+
1519+
**Extends:** HTMLAttributesBase, FilterBase&lt;HTMLElement&gt;
1520+
1521+
[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts)
1522+
15131523
## implicit$FirstArg
15141524
15151525
Create a `____$(...)` convenience method from `___(...)`.
@@ -2765,7 +2775,7 @@ export type QwikHTMLElements = {
27652775
};
27662776
```
27672777
2768-
**References:** [QwikAttributes](#qwikattributes)
2778+
**References:** [HTMLElementAttrs](#htmlelementattrs), [QwikAttributes](#qwikattributes)
27692779
27702780
[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts)
27712781
@@ -2963,6 +2973,8 @@ export type QwikSVGElements = {
29632973
};
29642974
```
29652975
2976+
**References:** [SVGProps](#svgprops)
2977+
29662978
[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts)
29672979
29682980
## QwikSymbolEvent
@@ -8306,6 +8318,16 @@ _(Optional)_
83068318
83078319
[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts)
83088320
8321+
## SVGProps
8322+
8323+
```typescript
8324+
export interface SVGProps<T extends Element> extends SVGAttributes, QwikAttributes<T>
8325+
```
8326+
8327+
**Extends:** [SVGAttributes](#svgattributes), [QwikAttributes](#qwikattributes)&lt;T&gt;
8328+
8329+
[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts)
8330+
83098331
## sync$
83108332
83118333
Extract function into a synchronously loadable QRL.

packages/qwik/src/core/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ export type {
8585
QwikHTMLElements,
8686
QwikSVGElements,
8787
SVGAttributes,
88+
HTMLElementAttrs,
89+
SVGProps,
8890
} from './shared/jsx/types/jsx-generated';
8991
export { render } from './client/dom-render';
9092
export { getDomContainer, _getQContainerElement } from './client/dom-container';

packages/qwik/src/core/qwik.core.api.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,13 @@ function h<TYPE extends string | FunctionComponent<PROPS>, PROPS extends {} = {}
372372
export { h as createElement }
373373
export { h }
374374

375+
// Warning: (ae-forgotten-export) The symbol "HTMLAttributesBase" needs to be exported by the entry point index.d.ts
376+
// Warning: (ae-forgotten-export) The symbol "FilterBase" needs to be exported by the entry point index.d.ts
377+
//
378+
// @public (undocumented)
379+
export interface HTMLElementAttrs extends HTMLAttributesBase, FilterBase<HTMLElement> {
380+
}
381+
375382
// @internal @deprecated (undocumented)
376383
export const _IMMUTABLE: unique symbol;
377384

@@ -685,7 +692,6 @@ export type QwikFocusEvent<T = Element> = NativeFocusEvent;
685692

686693
// Warning: (ae-forgotten-export) The symbol "Augmented" needs to be exported by the entry point index.d.ts
687694
// Warning: (ae-forgotten-export) The symbol "SpecialAttrs" needs to be exported by the entry point index.d.ts
688-
// Warning: (ae-forgotten-export) The symbol "HTMLElementAttrs" needs to be exported by the entry point index.d.ts
689695
//
690696
// @public
691697
export type QwikHTMLElements = {
@@ -742,8 +748,6 @@ export type QwikPointerEvent<T = Element> = NativePointerEvent;
742748
// @public @deprecated (undocumented)
743749
export type QwikSubmitEvent<T = Element> = SubmitEvent;
744750

745-
// Warning: (ae-forgotten-export) The symbol "SVGProps" needs to be exported by the entry point index.d.ts
746-
//
747751
// @public
748752
export type QwikSVGElements = {
749753
[K in keyof Omit<SVGElementTagNameMap, keyof HTMLElementTagNameMap>]: SVGProps<SVGElementTagNameMap[K]>;
@@ -1620,6 +1624,10 @@ export interface SVGAttributes<T extends Element = Element> extends AriaAttribut
16201624
zoomAndPan?: string | undefined;
16211625
}
16221626

1627+
// @public (undocumented)
1628+
export interface SVGProps<T extends Element> extends SVGAttributes, QwikAttributes<T> {
1629+
}
1630+
16231631
// @public
16241632
export const sync$: <T extends Function>(fn: T) => SyncQRL<T>;
16251633

0 commit comments

Comments
 (0)