JohnWeisz/TypedJSON

Indent with string | number | null

Opened this issue · 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.