Home / Function/ isValidKey() — astro Function Reference

isValidKey() — astro Function Reference

Architecture documentation for the isValidKey() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  1dd210df_7484_237f_2e0e_5eb316480975["isValidKey()"]
  942f8bed_424f_0805_6c0b_154ed0869816["index.ts"]
  1dd210df_7484_237f_2e0e_5eb316480975 -->|defined in| 942f8bed_424f_0805_6c0b_154ed0869816
  style 1dd210df_7484_237f_2e0e_5eb316480975 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/preferences/index.ts lines 61–63

export function isValidKey(key: string): key is PreferenceKey {
	return dget(DEFAULT_PREFERENCES, key) !== undefined;
}

Domain

Subdomains

Frequently Asked Questions

What does isValidKey() do?
isValidKey() is a function in the astro codebase, defined in packages/astro/src/preferences/index.ts.
Where is isValidKey() defined?
isValidKey() is defined in packages/astro/src/preferences/index.ts at line 61.

Analyze Your Own Codebase

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

Try Supermodel Free