mirror of
https://github.com/voson-wang/toon.git
synced 2026-01-29 23:34:10 +08:00
fix: add delimiter option
This commit is contained in:
@@ -11,6 +11,11 @@ export type JsonValue = JsonPrimitive | JsonObject | JsonArray
|
||||
|
||||
export interface EncodeOptions {
|
||||
indent?: number
|
||||
/**
|
||||
* Delimiter to use for tabular array rows and inline primitive arrays.
|
||||
* @default ','
|
||||
*/
|
||||
delimiter?: ',' | '\t' | '|'
|
||||
}
|
||||
|
||||
export type ResolvedEncodeOptions = Readonly<Required<EncodeOptions>>
|
||||
|
||||
Reference in New Issue
Block a user