Skip to main content

Type Alias: AutoInstantiatedSubtemplate<TFinalSettings>

AutoInstantiatedSubtemplate<TFinalSettings> = object

Defined in: ../../template-types-lib/src/types/template-config-types.ts:117

Auto instantiate subtemplates.

Type Parameters

TFinalSettings

TFinalSettings extends FinalTemplateSettings = FinalTemplateSettings

Properties

children?

optional children: AutoInstantiatedSubtemplate<TFinalSettings>[]

Defined in: ../../template-types-lib/src/types/template-config-types.ts:136

Array of children templates to also autoinstiate with this one.


mapSettings

mapSettings: AnyOrCallback<TFinalSettings, UserTemplateSettings>

Defined in: ../../template-types-lib/src/types/template-config-types.ts:131

Function to map the user settings to the subtemplate settings. This function is called with the user settings and should return the subtemplate settings.


subTemplateName

subTemplateName: string

Defined in: ../../template-types-lib/src/types/template-config-types.ts:125

The path to the subtemplate. relative to project root

Example

"nix-project-flake"