isPiiRedactor
isPiiRedactor(
value:unknown):value is PiiRedactor
Defined in: src/lib/pii/redactor.ts:616
Structural (duck-typed) check for a PiiRedactor. Used instead of
instanceof because dual ESM/CJS packaging or an SSR/client boundary can
produce a redactor from a duplicate class copy, for which instanceof
silently returns false — the worst failure mode for a privacy feature.
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
value is PiiRedactor
Last updated on