File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/compass-collection/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function countSeparators(input: string): number {
123123export function renderFakerCallTree ( input : FakerCallTree ) : string {
124124 let result = '\n' ;
125125
126- function inner ( data : any , indent : number ) : string {
126+ function inner ( data : FakerCallTree , indent : number ) : string {
127127 const entries = Object . entries ( data ) ;
128128 let innerContent = '' ;
129129
@@ -136,7 +136,7 @@ export function renderFakerCallTree(input: FakerCallTree): string {
136136 } else if ( typeof value === 'object' && ! Array . isArray ( value ) ) {
137137 // recursive case
138138 line += '{\n' ;
139- line += inner ( value , indent + 1 ) ; // Recursively process the nested object
139+ line += inner ( value , indent + 1 ) ;
140140 line += `${ '\t' . repeat ( indent ) } }` ;
141141 } else {
142142 throw Error (
@@ -148,7 +148,6 @@ export function renderFakerCallTree(input: FakerCallTree): string {
148148 line += ',' ;
149149 }
150150
151- // Add formatting and accumulate content
152151 line += '\n' ;
153152 innerContent += line ;
154153 } ) ;
You can’t perform that action at this time.
0 commit comments