Skip to content
Developer Preview

FoldedItem

What the iterators yield: the fold’s stored item, sealed.

DeepReadonly because these ARE the objects the fold holds — the generated wire types carry no readonly, so an unsealed yield would let a consumer write item.revision = 0 and defeat the guard through the read surface. The seal is compile-time only; nothing is frozen or cloned on the hot path.

Source

clients/sdk-ts/src/facade/turn-handle.ts:47

{
"kind": "Type alias",
"canonicalPath": "FoldedItem"
}