From 0a4c89e49656a44885e28352b8ad776a1acc9978 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Tue, 11 Nov 2025 17:24:18 +0100 Subject: [PATCH] refactor: move function internally --- packages/toon/src/decode/expand.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/toon/src/decode/expand.ts b/packages/toon/src/decode/expand.ts index dd6bbb9..5ee82c4 100644 --- a/packages/toon/src/decode/expand.ts +++ b/packages/toon/src/decode/expand.ts @@ -18,10 +18,6 @@ export interface ObjectWithQuotedKeys extends JsonObject { [QUOTED_KEY_MARKER]?: Set } -function canMerge(a: JsonValue, b: JsonValue): a is JsonObject { - return isJsonObject(a) && isJsonObject(b) -} - /** * Expands dotted keys into nested objects in safe mode. * @@ -229,3 +225,7 @@ function mergeObjects( } // #endregion + +function canMerge(a: JsonValue, b: JsonValue): a is JsonObject { + return isJsonObject(a) && isJsonObject(b) +}