Skip to content

Descriptions #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
61d9bfe
refactor: optimize file system operations by removing async/await for…
Bashamega Apr 23, 2025
7b92b7d
chore: better naming
Bashamega Apr 23, 2025
746f705
feat: extract summary from MDN comments for better documentation
Bashamega Apr 23, 2025
9521a10
generate
Bashamega Apr 23, 2025
a995e00
remove comments
Bashamega Apr 23, 2025
ca08f27
Remove hashing
Bashamega Apr 23, 2025
7f82e1f
regenerate
Bashamega Apr 23, 2025
9afe136
-
Bashamega Apr 23, 2025
a2b7a93
feat: comments for iterator
Bashamega Apr 24, 2025
d6d08f7
Merge branch 'microsoft:main' into descriptions
Bashamega Apr 24, 2025
d65d812
generate
Bashamega Apr 24, 2025
04ba40c
-
Bashamega Apr 24, 2025
7da9e85
-
Bashamega Apr 24, 2025
576b872
-
Bashamega Apr 24, 2025
16ef393
-
Bashamega Apr 24, 2025
5110391
-
Bashamega Apr 24, 2025
63c359d
generate
Bashamega Apr 24, 2025
7a40173
clean
Bashamega Apr 24, 2025
fdddfa6
remove await
Bashamega Apr 25, 2025
968a4e4
simplify
Bashamega Apr 25, 2025
0123276
refactor: extract title generation logic into a separate function
Bashamega Apr 25, 2025
e146dfe
refactor: remove descriptions parameter from emitFlavor and emitWebId…
Bashamega Apr 27, 2025
d97bcb7
-
Bashamega Apr 27, 2025
de83ebc
Merge branch 'microsoft:main' into descriptions
Bashamega Apr 27, 2025
7386df6
generate
Bashamega Apr 27, 2025
619d3c2
merge branches
Bashamega Apr 28, 2025
7d3c431
refactor: optimize file processing in generateDescriptions function u…
Bashamega Apr 28, 2025
3c7d15a
Merge branches
Bashamega Apr 29, 2025
ebfc8c4
Merge branch 'microsoft:main' into descriptions
Bashamega May 4, 2025
ff14106
Update
Bashamega May 4, 2025
88daf24
-
Bashamega May 4, 2025
09a8071
merge
Bashamega May 14, 2025
53d05d3
-
Bashamega May 14, 2025
155f013
-
Bashamega May 14, 2025
fae5ec1
-
Bashamega May 14, 2025
3130a7a
.
Bashamega May 15, 2025
79d9131
use leaf
Bashamega May 15, 2025
615bdb5
Merge branch 'microsoft:main' into descriptions
Bashamega May 17, 2025
ea052dc
-
Bashamega May 21, 2025
bff888b
Merge branch 'descriptions' of https://github.com/Bashamega/TypeScrip…
May 21, 2025
11d8d3e
Update mdn-comments.ts
Bashamega May 21, 2025
94d22b9
Refactor merge function to support optional parameter and update merg…
Bashamega May 28, 2025
d2ee6f5
Merge branch 'descriptions' of https://github.com/Bashamega/TypeScrip…
Bashamega May 28, 2025
241a83c
format
Bashamega May 28, 2025
9e7d2f9
-
Bashamega May 29, 2025
32fee24
Update emitNonCallbackInterfaces to include interfaces without names …
Bashamega May 29, 2025
12a3cb9
-
Bashamega May 29, 2025
262a699
-
Bashamega May 29, 2025
63c7cdb
-
Bashamega May 29, 2025
7e2b12e
-
Bashamega Jun 3, 2025
7ecc60d
-
Bashamega Jun 3, 2025
1848c57
remove try and catch
Bashamega Jun 3, 2025
734c5e0
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
8673704
update logic
Bashamega Jun 3, 2025
c4062ba
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
6f8d929
-
Bashamega Jun 3, 2025
43d9b43
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
dc848db
Update src/build.ts
Bashamega Jun 3, 2025
6ddc417
lint
Bashamega Jun 3, 2025
8cc781b
-
Bashamega Jun 3, 2025
7d81067
Merge branch 'microsoft:main' into descriptions
Bashamega Jun 3, 2025
6a65a54
generate
Bashamega Jun 3, 2025
99cf7ec
-
Bashamega Jun 3, 2025
a931367
Update src/build.ts
Bashamega Jun 3, 2025
e529775
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
4cc342b
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
0ffb148
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
3f65e0f
Update src/build/mdn-comments.ts
Bashamega Jun 3, 2025
20c60b9
fix
Bashamega Jun 3, 2025
3e8433e
-
Bashamega Jun 3, 2025
3877aad
rename
Bashamega Jun 3, 2025
2fc354e
-
Bashamega Jun 3, 2025
0f3a8df
Refactor generatePath function in mdn-comments.ts to simplify return …
Bashamega Jun 3, 2025
3a2afba
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
f449210
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
4120aa3
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
01fca42
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
99655cf
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
a81c050
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
fcdcab9
Update src/build/mdn-comments.ts
saschanaz Jun 3, 2025
d101d73
Apply suggestions from code review
saschanaz Jun 3, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
generate
  • Loading branch information
Bashamega committed Apr 24, 2025
commit d65d8121aafa4c86bde7009b99a4b558e9319d85
34 changes: 19 additions & 15 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,11 @@ interface ARIAMixin {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden)
*/
ariaHidden: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */
/**
* The **`ariaInvalid`** property of the Element interface reflects the value of the `aria-invalid` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid)
*/
ariaInvalid: string | null;
/**
* The **`ariaKeyShortcuts`** property of the Element interface reflects the value of the `aria-keyshortcuts` attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Expand Down Expand Up @@ -6578,7 +6582,7 @@ interface CSSStyleDeclaration {
*/
clipPath: string;
/**
* The **`clip-rule`** CSS property defines how to determine which pixels in a mask's box are inside the clipping shape defined by a clip path, and which are outside, when parts of the path overlap other parts.
* The **`clip-rule`** CSS property determines, when parts of the path overlap other parts, which pixels in a mask's box are inside the clipping shape defined by a clip path and which are outside.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule)
*/
Expand Down Expand Up @@ -7400,7 +7404,7 @@ interface CSSStyleDeclaration {
*/
markerStart: string;
/**
* The **`mask`** CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.
* The **`mask`** CSS shorthand property hides an element (partially or fully) by masking or clipping a specified area of the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)
*/
Expand Down Expand Up @@ -13166,25 +13170,25 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*/
className: string;
/**
* The **`Element.clientHeight`** read-only property is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
* The **`clientHeight`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight)
*/
readonly clientHeight: number;
/**
* The width of the left border of an element in pixels.
* The **`clientLeft`** read-only property of the Element interface returns the width of the left border of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft)
*/
readonly clientLeft: number;
/**
* The width of the top border of an element in pixels.
* The **`clientTop`** read-only property of the Element interface returns the width of the top border of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop)
*/
readonly clientTop: number;
/**
* The **`Element.clientWidth`** property is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
* The **`clientWidth`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth)
*/
Expand Down Expand Up @@ -13252,25 +13256,25 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*/
readonly prefix: string | null;
/**
* The **`Element.scrollHeight`** read-only property is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
* The **`scrollHeight`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight)
*/
readonly scrollHeight: number;
/**
* The **`Element.scrollLeft`** property gets or sets the number of pixels by which an element's content is scrolled from its left edge.
* The **`scrollLeft`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft)
*/
scrollLeft: number;
/**
* The **`Element.scrollTop`** property gets or sets the number of pixels by which an element's content is scrolled from its top edge.
* The **`scrollTop`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop)
*/
scrollTop: number;
/**
* The **`Element.scrollWidth`** read-only property is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
* The **`scrollWidth`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth)
*/
Expand Down Expand Up @@ -16660,13 +16664,13 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
*/
lang: string;
/**
* The **`HTMLElement.offsetHeight`** read-only property returns the height of an element, including vertical padding and borders, as an integer.
* The **`offsetHeight`** read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight)
*/
readonly offsetHeight: number;
/**
* The **`HTMLElement.offsetLeft`** read-only property returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.
* The **`offsetLeft`** read-only property of the HTMLElement interface returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft)
*/
Expand All @@ -16678,13 +16682,13 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
*/
readonly offsetParent: Element | null;
/**
* The **`HTMLElement.offsetTop`** read-only property returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.
* The **`offsetTop`** read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop)
*/
readonly offsetTop: number;
/**
* The **`HTMLElement.offsetWidth`** read-only property returns the layout width of an element as an integer.
* The **`offsetWidth`** read-only property of the HTMLElement interface returns the layout width of an element as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth)
*/
Expand Down
34 changes: 19 additions & 15 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,11 @@ interface ARIAMixin {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden)
*/
ariaHidden: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */
/**
* The **`ariaInvalid`** property of the Element interface reflects the value of the `aria-invalid` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid)
*/
ariaInvalid: string | null;
/**
* The **`ariaKeyShortcuts`** property of the Element interface reflects the value of the `aria-keyshortcuts` attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Expand Down Expand Up @@ -6572,7 +6576,7 @@ interface CSSStyleDeclaration {
*/
clipPath: string;
/**
* The **`clip-rule`** CSS property defines how to determine which pixels in a mask's box are inside the clipping shape defined by a clip path, and which are outside, when parts of the path overlap other parts.
* The **`clip-rule`** CSS property determines, when parts of the path overlap other parts, which pixels in a mask's box are inside the clipping shape defined by a clip path and which are outside.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule)
*/
Expand Down Expand Up @@ -7394,7 +7398,7 @@ interface CSSStyleDeclaration {
*/
markerStart: string;
/**
* The **`mask`** CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.
* The **`mask`** CSS shorthand property hides an element (partially or fully) by masking or clipping a specified area of the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)
*/
Expand Down Expand Up @@ -13158,25 +13162,25 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*/
className: string;
/**
* The **`Element.clientHeight`** read-only property is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
* The **`clientHeight`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight)
*/
readonly clientHeight: number;
/**
* The width of the left border of an element in pixels.
* The **`clientLeft`** read-only property of the Element interface returns the width of the left border of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft)
*/
readonly clientLeft: number;
/**
* The width of the top border of an element in pixels.
* The **`clientTop`** read-only property of the Element interface returns the width of the top border of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop)
*/
readonly clientTop: number;
/**
* The **`Element.clientWidth`** property is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
* The **`clientWidth`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth)
*/
Expand Down Expand Up @@ -13243,25 +13247,25 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
*/
readonly prefix: string | null;
/**
* The **`Element.scrollHeight`** read-only property is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
* The **`scrollHeight`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight)
*/
readonly scrollHeight: number;
/**
* The **`Element.scrollLeft`** property gets or sets the number of pixels by which an element's content is scrolled from its left edge.
* The **`scrollLeft`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft)
*/
scrollLeft: number;
/**
* The **`Element.scrollTop`** property gets or sets the number of pixels by which an element's content is scrolled from its top edge.
* The **`scrollTop`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop)
*/
scrollTop: number;
/**
* The **`Element.scrollWidth`** read-only property is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
* The **`scrollWidth`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth)
*/
Expand Down Expand Up @@ -16648,13 +16652,13 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
*/
lang: string;
/**
* The **`HTMLElement.offsetHeight`** read-only property returns the height of an element, including vertical padding and borders, as an integer.
* The **`offsetHeight`** read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight)
*/
readonly offsetHeight: number;
/**
* The **`HTMLElement.offsetLeft`** read-only property returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.
* The **`offsetLeft`** read-only property of the HTMLElement interface returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft)
*/
Expand All @@ -16666,13 +16670,13 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
*/
readonly offsetParent: Element | null;
/**
* The **`HTMLElement.offsetTop`** read-only property returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.
* The **`offsetTop`** read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop)
*/
readonly offsetTop: number;
/**
* The **`HTMLElement.offsetWidth`** read-only property returns the layout width of an element as an integer.
* The **`offsetWidth`** read-only property of the HTMLElement interface returns the layout width of an element as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth)
*/
Expand Down
Loading