File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ class ClerkMarkdownThemeContext extends MarkdownThemeContext {
4444
4545 const superPartials = this . partials ;
4646
47+ this . _insideFunctionSignature = false ;
48+
4749 this . partials = {
4850 ...superPartials ,
4951 /**
@@ -143,14 +145,16 @@ class ClerkMarkdownThemeContext extends MarkdownThemeContext {
143145 ) ;
144146 }
145147
148+ const prevInsideParams = this . _insideFunctionSignature ;
146149 this . _insideFunctionSignature = true ;
147150 md . push ( this . partials . signatureParameters ( model . parameters || [ ] ) ) ;
148- this . _insideFunctionSignature = false ;
151+ this . _insideFunctionSignature = prevInsideParams ;
149152
150153 if ( model . type ) {
154+ const prevInsideType = this . _insideFunctionSignature ;
151155 this . _insideFunctionSignature = true ;
152156 const typeOutput = this . partials . someType ( model . type ) ;
153- this . _insideFunctionSignature = false ;
157+ this . _insideFunctionSignature = prevInsideType ;
154158 md . push ( `: ${ typeOutput } ` ) ;
155159 }
156160
You can’t perform that action at this time.
0 commit comments