Home / Function/ hasGetReader() — astro Function Reference

hasGetReader() — astro Function Reference

Architecture documentation for the hasGetReader() function in escape.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a6fc8e0f_3374_63a9_2337_91a1ed9a894d["hasGetReader()"]
  f9efe560_33a4_eae8_4bc6_06db77690a17["escape.ts"]
  a6fc8e0f_3374_63a9_2337_91a1ed9a894d -->|defined in| f9efe560_33a4_eae8_4bc6_06db77690a17
  bfd09420_df66_2fb3_5a0b_487fb4ef4cc0["unescapeChunksAsync()"]
  bfd09420_df66_2fb3_5a0b_487fb4ef4cc0 -->|calls| a6fc8e0f_3374_63a9_2337_91a1ed9a894d
  a9777e18_d6c8_dd25_9401_be2009f3888d["unescapeHTML()"]
  a9777e18_d6c8_dd25_9401_be2009f3888d -->|calls| a6fc8e0f_3374_63a9_2337_91a1ed9a894d
  style a6fc8e0f_3374_63a9_2337_91a1ed9a894d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/escape.ts lines 62–64

function hasGetReader(obj: unknown): obj is ReadableStream {
	return typeof (obj as any).getReader === 'function';
}

Domain

Subdomains

Frequently Asked Questions

What does hasGetReader() do?
hasGetReader() is a function in the astro codebase, defined in packages/astro/src/runtime/server/escape.ts.
Where is hasGetReader() defined?
hasGetReader() is defined in packages/astro/src/runtime/server/escape.ts at line 62.
What calls hasGetReader()?
hasGetReader() is called by 2 function(s): unescapeChunksAsync, unescapeHTML.

Analyze Your Own Codebase

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

Try Supermodel Free