requireSection<
E>(sections,tag,factories,detail):Uint8Array
Defined in: packages/wire/src/guards.ts:63
Return the only section carrying tag, or fail with package-owned geometry.
Type Parameters
Section titled “Type Parameters”E extends KnotkitError
Parameters
Section titled “Parameters”sections
Section titled “sections”readonly WireSection[]
number
factories
Section titled “factories”detail
Section titled “detail”string
Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”The package-owned invalid-section-geometry error.