allow overriding `JsonWriter.state`

This commit is contained in:
Etan Kissling 2024-10-14 17:08:55 +02:00
parent ab1a061756
commit 558b89065c
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export
outputs, format, types, JsonString, DefaultFlavor
type
JsonWriterState = enum
JsonWriterState* = enum
RecordExpected
RecordStarted
AfterField
@ -27,7 +27,7 @@ type
hasTypeAnnotations: bool
hasPrettyOutput*: bool # read-only
nestingLevel*: int # read-only
state: JsonWriterState
state*: JsonWriterState
Json.setWriter JsonWriter,
PreferredOutput = string