UNPKG

@kubricate/core

Version:

A TypeScript framework for building reusable, type-safe Kubernetes infrastructure — without the YAML mess.

20 lines (19 loc) 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defineStackTemplate = defineStackTemplate; /** * Defines a stack factory that creates a stack of resources based on the provided input. * * @param name - The name of the stack. * @param factory - A function that takes an input and returns a map of resources. * @returns A stack factory function. */ function defineStackTemplate(name, factory) { return { name, create: factory }; } //# sourceMappingURL=helper.js.map