Skip to main content

aggregateEntityInterfaces

@quik/entity


@quik/entity / Generators / aggregateEntityInterfaces

Function: aggregateEntityInterfaces()

aggregateEntityInterfaces(fileName, entities, options?): string

Defined in: entity/src/generators/generateTypescriptInterface.ts:154

Generates a TypeScript file with multiple entity interfaces.

This function aggregates multiple entity interfaces into a single file by:

  1. Creating a file header with a description of the generated content
  2. Generating individual interfaces for each entity
  3. Combining them with proper spacing and formatting

Parameters

fileName

string

The name of the file being generated

entities

string[]

Array of entity names to generate interfaces for

options?

TypescriptInterfaceOptions

Configuration options for interface generation

Returns

string