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 Parameter | Default type |
|---|---|
TValue | unknown |
Parameters
| Parameter | Type |
|---|---|
spec | Omit<InputGuardrail<TValue>, "kind"> |
Returns
InputGuardrail<TValue>