Home / Type/ SessionConfig Type — astro Architecture

SessionConfig Type — astro Architecture

Architecture documentation for the SessionConfig type/interface in types.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  df3e7ac6_ece4_5bc1_0e64_69eb9471cee1["SessionConfig"]
  8a043672_fcb4_880f_4008_7ebf53cfff0a["types.ts"]
  df3e7ac6_ece4_5bc1_0e64_69eb9471cee1 -->|defined in| 8a043672_fcb4_880f_4008_7ebf53cfff0a
  style df3e7ac6_ece4_5bc1_0e64_69eb9471cee1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/session/types.ts lines 82–90

export type SessionConfig<TDriver extends SessionDriverName | SessionDriverConfig | undefined> = [
	TDriver,
] extends [never]
	? UnstorageConfig<TDriver>
	: TDriver extends SessionDriverConfig
		? DriverConfig<TDriver>
		: TDriver extends keyof BuiltinDriverOptions
			? UnstorageConfig<TDriver>
			: CustomConfig;

Frequently Asked Questions

What is the SessionConfig type?
SessionConfig is a type/interface in the astro codebase, defined in packages/astro/src/core/session/types.ts.
Where is SessionConfig defined?
SessionConfig is defined in packages/astro/src/core/session/types.ts at line 82.

Analyze Your Own Codebase

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

Try Supermodel Free