Home / Type/ StripEnums Type — astro Architecture

StripEnums Type — astro Architecture

Architecture documentation for the StripEnums type/interface in tsconfig.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  7ae26167_de70_0074_87dc_3bdcd38190a0["StripEnums"]
  b48a9dfd_560c_402d_a2d5_24a8cee0ea82["tsconfig.ts"]
  7ae26167_de70_0074_87dc_3bdcd38190a0 -->|defined in| b48a9dfd_560c_402d_a2d5_24a8cee0ea82
  style 7ae26167_de70_0074_87dc_3bdcd38190a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/config/tsconfig.ts lines 172–184

type StripEnums<T extends Record<string, any>> = {
	[K in keyof T]: T[K] extends boolean
		? T[K]
		: T[K] extends string
			? T[K]
			: T[K] extends object
				? T[K]
				: T[K] extends Array<any>
					? T[K]
					: T[K] extends undefined
						? undefined
						: any;
};

Frequently Asked Questions

What is the StripEnums type?
StripEnums is a type/interface in the astro codebase, defined in packages/astro/src/core/config/tsconfig.ts.
Where is StripEnums defined?
StripEnums is defined in packages/astro/src/core/config/tsconfig.ts at line 172.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free