TypedJSON icon indicating copy to clipboard operation
TypedJSON copied to clipboard

Indent with string | number | null

Open sumbricht opened this issue 3 years ago • 0 comments

I'm not a big fan it space indentation as I have a strong preference on tabs :-). The TypeScript declaration currently defines ITypedJSONSettings.indent as number | null; I'm suggesting to change that to number | string | null.

As far as I can tell, nothing else needs to be changed as all you're doing with the indent property is pass it as 3rd parameter to JSON.stringify, which already accepts number | string as the "space" parameter.

sumbricht avatar Jul 12 '21 17:07 sumbricht