Skip to main content
Latest
variable decision_policy_adapter
import { decision_policy_adapter } from "https://deno.land/x/shisho_cloud_policy_helpers@v0.0.1/decision/mod.ts";

Wrap DecidePolicy so that policy runners can execute it.

The default export of the entrypoint of a policy should be of the form export default decision_policy_adapter(convert_input)(decide) unless you understand what you are doing.

type

<Query>(convert_input: InputConverter<Query>) => unknown