Skip to content
Français

createRecipeRegistry

import { createRecipeRegistry } from "@elie-laloum/outpost/recipes";

Create an immutable registry of additional component descriptors. Duplicate names fail immediately; the recipe runtime combines this registry with its native descriptors.

Complete example and detailed rules.

  • optionsOptional
    RecipeRegistryOptions | undefined
    Additional named component descriptors; omitted options create an empty extension registry.
  • options.componentsOptional
    readonly RecipeComponentDefinition[] | undefined
    Additional factory descriptors, each with a unique name.

RecipeRegistry

export declare function createRecipeRegistry(
  options?: RecipeRegistryOptions,
): RecipeRegistry;