Home / Function/ isFontType() — astro Function Reference

isFontType() — astro Function Reference

Architecture documentation for the isFontType() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f55d9442_b9b3_4926_850c_8611f219cc34["isFontType()"]
  77c4177d_ca70_d1e3_9542_4dbf91aa1dfd["utils.ts"]
  f55d9442_b9b3_4926_850c_8611f219cc34 -->|defined in| 77c4177d_ca70_d1e3_9542_4dbf91aa1dfd
  style f55d9442_b9b3_4926_850c_8611f219cc34 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/utils.ts lines 60–62

export function isFontType(str: string): str is FontType {
	return (FONT_TYPES as Readonly<Array<string>>).includes(str);
}

Domain

Subdomains

Frequently Asked Questions

What does isFontType() do?
isFontType() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/utils.ts.
Where is isFontType() defined?
isFontType() is defined in packages/astro/src/assets/fonts/utils.ts at line 60.

Analyze Your Own Codebase

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

Try Supermodel Free