Skip to content

Commit 20c60b9

Browse files
committed
fix
1 parent 3f65e0f commit 20c60b9

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

baselines/dom.generated.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36555,7 +36555,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
3655536555
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
3655636556
*/
3655736557
readonly visualViewport: VisualViewport | null;
36558-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
36558+
/**
36559+
* The **`window`** property of a Window object points to the window object itself.
36560+
*
36561+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
36562+
*/
3655936563
readonly window: Window & typeof globalThis;
3656036564
/**
3656136565
* `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
@@ -38587,7 +38591,11 @@ declare var top: WindowProxy | null;
3858738591
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
3858838592
*/
3858938593
declare var visualViewport: VisualViewport | null;
38590-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
38594+
/**
38595+
* The **`window`** property of a Window object points to the window object itself.
38596+
*
38597+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
38598+
*/
3859138599
declare var window: Window & typeof globalThis;
3859238600
/**
3859338601
* `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.

baselines/ts5.5/dom.generated.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36533,7 +36533,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
3653336533
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
3653436534
*/
3653536535
readonly visualViewport: VisualViewport | null;
36536-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
36536+
/**
36537+
* The **`window`** property of a Window object points to the window object itself.
36538+
*
36539+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
36540+
*/
3653736541
readonly window: Window & typeof globalThis;
3653836542
/**
3653936543
* `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
@@ -38565,7 +38569,11 @@ declare var top: WindowProxy | null;
3856538569
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
3856638570
*/
3856738571
declare var visualViewport: VisualViewport | null;
38568-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
38572+
/**
38573+
* The **`window`** property of a Window object points to the window object itself.
38574+
*
38575+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
38576+
*/
3856938577
declare var window: Window & typeof globalThis;
3857038578
/**
3857138579
* `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.

baselines/ts5.6/dom.generated.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36555,7 +36555,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
3655536555
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
3655636556
*/
3655736557
readonly visualViewport: VisualViewport | null;
36558-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
36558+
/**
36559+
* The **`window`** property of a Window object points to the window object itself.
36560+
*
36561+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
36562+
*/
3655936563
readonly window: Window & typeof globalThis;
3656036564
/**
3656136565
* `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
@@ -38587,7 +38591,11 @@ declare var top: WindowProxy | null;
3858738591
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
3858838592
*/
3858938593
declare var visualViewport: VisualViewport | null;
38590-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
38594+
/**
38595+
* The **`window`** property of a Window object points to the window object itself.
38596+
*
38597+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
38598+
*/
3859138599
declare var window: Window & typeof globalThis;
3859238600
/**
3859338601
* `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.

src/build/mdn-comments.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ export async function generateDescriptions(): Promise<{
137137
const content = await fs.readFile(fileURL, "utf-8");
138138
const slug = generateSlug(content);
139139
const types = generateTypes(content);
140-
if (!slug || slug.length === 0 || !types)
141-
return;
140+
if (!slug || slug.length === 0 || !types) return;
142141

143142
const summary = extractSummary(content);
144143
insertComment(results, slug, summary, types);

0 commit comments

Comments
 (0)