Preparing search index...
The search index is not available
Astro Node.js Fastify adapter - v0.0.12
Astro Node.js Fastify adapter
<internal>
ConstraintStrategy
Interface ConstraintStrategy<V, T>
interface
ConstraintStrategy
<
V
,
T
>
{
mustMatchWhenDerived
?:
boolean
;
name
:
string
;
deriveConstraint
<
Context
>
(
req
,
ctx
?
)
:
T
;
storage
(
)
:
{
del
?
(
value
)
:
void
;
empty
?
(
)
:
void
;
get
(
value
)
:
null
|
Handler
<
V
>
;
set
(
value
,
handler
)
:
void
;
}
;
validate
?
(
value
)
:
void
;
}
Type Parameters
V
extends
HTTPVersion
T
=
string
Index
Properties
must
Match
When
Derived?
name
Methods
derive
Constraint
storage
validate?
Properties
Optional
must
Match
When
Derived
must
Match
When
Derived
?:
boolean
name
name
:
string
Methods
derive
Constraint
derive
Constraint
<
Context
>
(
req
,
ctx
?
)
:
T
Type Parameters
Context
Parameters
req
:
Req
<
V
>
Optional
ctx
:
Context
Returns
T
storage
storage
(
)
:
{
del
?
(
value
)
:
void
;
empty
?
(
)
:
void
;
get
(
value
)
:
null
|
Handler
<
V
>
;
set
(
value
,
handler
)
:
void
;
}
Returns
{
del
?
(
value
)
:
void
;
empty
?
(
)
:
void
;
get
(
value
)
:
null
|
Handler
<
V
>
;
set
(
value
,
handler
)
:
void
;
}
del
?:
function
del
(
value
)
:
void
Parameters
value
:
T
Returns
void
empty
?:
function
empty
(
)
:
void
Returns
void
get
:
function
get
(
value
)
:
null
|
Handler
<
V
>
Parameters
value
:
T
Returns
null
|
Handler
<
V
>
set
:
function
set
(
value
,
handler
)
:
void
Parameters
value
:
T
handler
:
Handler
<
V
>
Returns
void
Optional
validate
validate
(
value
)
:
void
Parameters
value
:
unknown
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
must
Match
When
Derived
name
derive
Constraint
storage
validate
Astro Node.js Fastify adapter - v0.0.12
Loading...