AssignAttributesConfig
Defined in: src/policies/transform/assign-attributes.ts:14
Configuration for the assignAttributes policy.
Extends
Section titled “Extends”Properties
Section titled “Properties”attributes
Section titled “attributes”attributes:
Record<string,string| (c) =>string|Promise<string>>
Defined in: src/policies/transform/assign-attributes.ts:19
Key-value pairs to set on the Hono context. Values can be static strings or functions that receive the context.
skip()?
Section titled “skip()?”
optionalskip: (c) =>boolean|Promise<boolean>
Defined in: src/policies/types.ts:33
Skip this policy when condition returns true
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean | Promise<boolean>