huellaAnteriorOf
huellaAnteriorOf(
encadenamiento):string
Defined in: src/huella.ts:39
Extracts the predecessor huella — empty for the first record of a chain.
!== undefined, not "RegistroAnterior" in encadenamiento: since
Encadenamiento’s branches each pin the other’s field to ?: never (rather
than omitting it), the property exists — merely optional — on both union
members, so in narrowing (which only excludes a member when the property
is entirely absent from its type) leaves the full union in scope and
encadenamiento.RegistroAnterior typed RegistroAnterior | undefined.
The dotted-name !== undefined check narrows correctly instead.
Parameters
Section titled “Parameters”encadenamiento
Section titled “encadenamiento”Returns
Section titled “Returns”string