isJSDocument() — astro Function Reference
Architecture documentation for the isJSDocument() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ab12d742_7fc6_c116_2ea5_c094fc5abadf["isJSDocument()"] 839dada7_8bd4_2ee4_9498_f38d21d2f7e9["utils.ts"] ab12d742_7fc6_c116_2ea5_c094fc5abadf -->|defined in| 839dada7_8bd4_2ee4_9498_f38d21d2f7e9 style ab12d742_7fc6_c116_2ea5_c094fc5abadf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/language-tools/language-server/src/plugins/utils.ts lines 5–12
export function isJSDocument(languageId: string) {
return (
languageId === 'javascript' ||
languageId === 'typescript' ||
languageId === 'javascriptreact' ||
languageId === 'typescriptreact'
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isJSDocument() do?
isJSDocument() is a function in the astro codebase, defined in packages/language-tools/language-server/src/plugins/utils.ts.
Where is isJSDocument() defined?
isJSDocument() is defined in packages/language-tools/language-server/src/plugins/utils.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free