chore: initial commit

This commit is contained in:
Johann Schopplich
2025-10-22 20:16:02 +02:00
commit f105551c3e
24 changed files with 6983 additions and 0 deletions

20
src/types.ts Normal file
View File

@@ -0,0 +1,20 @@
// #region JSON types
export type JsonPrimitive = string | number | boolean | null
export type JsonObject = { [Key in string]: JsonValue } & { [Key in string]?: JsonValue | undefined }
export type JsonArray = JsonValue[] | readonly JsonValue[]
export type JsonValue = JsonPrimitive | JsonObject | JsonArray
// #endregion
// #region Encoder options
export interface EncodeOptions {
indent?: number
}
export type ResolvedEncodeOptions = Readonly<Required<EncodeOptions>>
// #endregion
export type Depth = number