(node: BaseNode)
| 2230 | )(node, node.$.cfg, ...Object.values(rootApplyRuntimeOf(node.$.cfg))) |
| 2231 | |
| 2232 | export const writeInnerJson = (node: BaseNode): JsonObject => { |
| 2233 | const json: JsonObject = {} |
| 2234 | for (const k in node.inner) { |
| 2235 | const keyImpl = node.impl.keys[k] |
| 2236 | if (keyImpl.unserialized) continue |
| 2237 | const serialize = |
| 2238 | keyImpl.serialize ?? |
| 2239 | (keyImpl.child ? serializeListableChild : defaultValueSerializer) |
| 2240 | json[k] = serialize((node.inner as Dict)[k] as never) |
| 2241 | } |
| 2242 | return (node.impl.fixJson?.(json) as JsonObject | undefined) ?? json |
| 2243 | } |
| 2244 | |
| 2245 | const serializeListableChild = (listableNode: listable<BaseNode>) => |
| 2246 | isArray(listableNode) ? |
no test coverage detected