File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
packages/react/src/hooks/cloud/krisp
tooling/api-documenter/src/documenters Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ export interface useKrispNoiseFilterOptions {
2929 * @beta
3030 * @example
3131 * ```tsx
32- * const krisp = useKrispNoiseFilter();
33- * return <input
34- type="checkbox"
35- onChange={(ev) => krisp.setNoiseFilterEnabled(ev.target.checked)}
36- checked={krisp.isNoiseFilterEnabled}
37- disabled={krisp.isNoiseFilterPending}
38- />
32+ * const krisp = useKrispNoiseFilter();
33+ * return <input
34+ * type="checkbox"
35+ * onChange={(ev) => krisp.setNoiseFilterEnabled(ev.target.checked)}
36+ * checked={krisp.isNoiseFilterEnabled}
37+ * disabled={krisp.isNoiseFilterPending}
38+ * />
3939 * ```
40+ * @returns Use `setIsNoiseFilterEnabled` to enable/disable the noise filter.
4041 */
4142export function useKrispNoiseFilter ( options : useKrispNoiseFilterOptions = { } ) {
4243 const [ shouldEnable , setShouldEnable ] = React . useState ( false ) ;
Original file line number Diff line number Diff line change @@ -1144,9 +1144,7 @@ export class MarkdownDocumenter {
11441144
11451145 if ( apiParameterListMixin instanceof ApiDocumentedItem ) {
11461146 if ( apiParameterListMixin . tsdocComment && apiParameterListMixin . tsdocComment . returnsBlock ) {
1147- // Process returns block for markdown links
1148- const processedReturns = this . _processMarkdownContent ( apiParameterListMixin . tsdocComment . returnsBlock . content ) ;
1149- this . _appendSection ( output , processedReturns ) ;
1147+ this . _appendSection ( output , apiParameterListMixin . tsdocComment . returnsBlock . content ) ;
11501148 }
11511149 }
11521150 }
@@ -1226,6 +1224,14 @@ export class MarkdownDocumenter {
12261224 const returnTypeExcerpt : Excerpt = apiParameterListMixin . returnTypeExcerpt ;
12271225 output . appendNode ( new DocHeading ( { configuration, title : 'Returns' , level : 2 } ) ) ;
12281226
1227+ if ( apiParameterListMixin instanceof ApiDocumentedItem ) {
1228+ if ( apiParameterListMixin . tsdocComment ?. returnsBlock ) {
1229+ this . _appendSection ( output , this . _processMarkdownContent (
1230+ apiParameterListMixin . tsdocComment . returnsBlock . content
1231+ ) ) ;
1232+ }
1233+ }
1234+
12291235 const fencedCode : DocFencedCode = new DocFencedCode ( {
12301236 configuration,
12311237 code : returnTypeExcerpt . text ,
You can’t perform that action at this time.
0 commit comments