Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / defineInputGuardrail

Function: defineInputGuardrail()

ts
function defineInputGuardrail<TValue>(spec): InputGuardrail<TValue>;

Defined in: packages/security/src/guardrails/builders.ts:28

Create a typed input guardrail. Thin wrapper around the declarative shape — the helper exists so call-sites stay declarative.

Type Parameters

Type ParameterDefault type
TValueunknown

Parameters

ParameterType
specOmit<InputGuardrail&lt;TValue&gt;, "kind">

Returns

InputGuardrail&lt;TValue&gt;

Stable