Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/endofunctor/src/options.ts>globalOptions

🌐 Vixeny: At the forefront of modern web development, Vixeny stands as a runtime-independent, efficiency-driven library dedicated to upholding the principles of functional purity. It's crafted to empower developers with a robust foundation for creating scalable, maintainable, and high-performance web applications.
Latest
variable globalOptions
import { globalOptions } from "https://deno.land/x/endofunctor@v0.1.30/src/options.ts";

Provides a function to configure global options for Vixeny's plugins. This allows setting options based on the provided plugin configuration map.

Examples

Example 1

import { plugins } from 'vixeny';

// Define a plugin method with nested function returns.
const pluginMethod = plugins.type({
  name: Symbol.for("example"),
  type: undefined,
  f: () => () => () => " inCycle",
});

// Set global options using the defined plugin method.
const options = plugins.globalOptions({
  cyclePlugin: {
    example: pluginMethod,
  },
});

type

<FC extends CyclePluginMap, O extends FunRouterOptions<FC>>(options?: O) => unknown