From e086a0076f9855fa25c877d964bd5d98b5c70f2e Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Wed, 18 Dec 2024 17:07:48 -0800 Subject: [PATCH] fix --- packages/react/src/hooks/useIsMuted.ts | 2 +- .../api-documenter/src/documenters/MarkdownDocumenter.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react/src/hooks/useIsMuted.ts b/packages/react/src/hooks/useIsMuted.ts index 45c94ca76..8c9417fb5 100644 --- a/packages/react/src/hooks/useIsMuted.ts +++ b/packages/react/src/hooks/useIsMuted.ts @@ -27,7 +27,7 @@ export interface UseIsMutedOptions { * ``` * * @param trackRef - A track reference object - * @param sourceOrTrackRef - Either a track reference or a track source + * @param sourceOrTrackRef - Either a `TrackRef` or a track source * @param options - Additional options when using with track source * @returns boolean indicating if the track is muted * diff --git a/tooling/api-documenter/src/documenters/MarkdownDocumenter.ts b/tooling/api-documenter/src/documenters/MarkdownDocumenter.ts index 64fa37e32..6762b7b3f 100644 --- a/tooling/api-documenter/src/documenters/MarkdownDocumenter.ts +++ b/tooling/api-documenter/src/documenters/MarkdownDocumenter.ts @@ -562,13 +562,11 @@ export class MarkdownDocumenter { output.appendNode(new DocHeading({ configuration, title, level: 3 })); - // Create new content with modified first node - const newContent = new DocSection({ configuration }); + const newContent: DocSection = new DocSection({ configuration }); if (firstNode && firstNode.getChildNodes().length > 0) { newContent.appendNode(firstNode); } - // Add all other nodes after the first one - for (let i = 1; i < exampleBlock.content.nodes.length; i++) { + for (let i: number = 1; i < exampleBlock.content.nodes.length; i++) { newContent.appendNode(exampleBlock.content.nodes[i]); }