Home / Function/ getAuditCategory() — astro Function Reference

getAuditCategory() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d9970c74_e63f_0be7_b764_1473974cb1bc["getAuditCategory()"]
  0cdfa5ed_e670_4d58_42f0_ea23911d9d06["index.ts"]
  d9970c74_e63f_0be7_b764_1473974cb1bc -->|defined in| 0cdfa5ed_e670_4d58_42f0_ea23911d9d06
  style d9970c74_e63f_0be7_b764_1473974cb1bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/client/dev-toolbar/apps/audit/rules/index.ts lines 71–73

export function getAuditCategory(rule: AuditRule): 'perf' | 'a11y' {
	return rule.code.split('-')[0] as 'perf' | 'a11y';
}

Domain

Subdomains

Frequently Asked Questions

What does getAuditCategory() do?
getAuditCategory() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/apps/audit/rules/index.ts.
Where is getAuditCategory() defined?
getAuditCategory() is defined in packages/astro/src/runtime/client/dev-toolbar/apps/audit/rules/index.ts at line 71.

Analyze Your Own Codebase

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

Try Supermodel Free