Skip to content

Function: unsupportedFromDiagnostic() ​

unsupportedFromDiagnostic(reason): VelloraUnsupportedError | undefined

Defined in: packages/vellora/src/errors.ts:191

Adapter (the single seam): reconstruct a VelloraUnsupportedError from a core/native located diagnostic, preserving node location + remediation hint verbatim. The bridge may reject either with a VelloraUnsupportedError already, or with an error/object carrying the structured { feature, line, col, hint } fields; both map to the same typed error.

Parameters ​

reason ​

unknown

Returns ​

VelloraUnsupportedError | undefined