interface AdditionalExport

Additional export configuration for version files

Examples

Example 1

const additionalExport: AdditionalExport = {
  name: "CONFIG",
  type: "const",
  value: { apiUrl: "https://api.example.com", timeout: 5000 },
  description: "Application configuration",
  asConst: true
};

Properties

name: string

Export name (must be a valid JavaScript identifier)

type:
"const"
| "let"
| "var"
| "class"
| "function"
| "interface"
| "type"
| "enum"

Export type

optional
content: string

The content of the export (for class, function, interface, type, enum)

optional
value: unknown

The value of the export (for const, let, var)

optional
description: string

Optional JSDoc comment description

optional
asConst: boolean

Whether to add "as const" assertion (for TypeScript const exports)

optional
async: boolean

Whether this export is async (for functions)

optional
isDefault: boolean

Whether this export is default

Usage

import { type AdditionalExport } from ".";