(encoded: Schema.Json)
| 1556 | value: unknown |
| 1557 | ): Schema.Json => cap(through(component, field, value) as Schema.Json) |
| 1558 | const cap = (encoded: Schema.Json): Schema.Json => { |
| 1559 | if (maxEntryBytes === Infinity) return encoded |
| 1560 | const bytes = utf8Length(JSON.stringify(encoded)) |
| 1561 | return bytes > maxEntryBytes ? { "~truncated": bytes } : encoded |
| 1562 | } |
| 1563 | const props = ( |
| 1564 | entry: { readonly component: Component.Mountable.Any; readonly props: unknown } |
| 1565 | ) => through(entry.component, "props", entry.props) as Schema.Json |
no test coverage detected