DiagnosticCodes Type — astro Architecture
Architecture documentation for the DiagnosticCodes type/interface in diagnostics.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 9979daf2_230e_a718_81de_8244822dd03e["DiagnosticCodes"] eb2f7d36_9d97_e74c_0d2e_fc25c2af688f["diagnostics.ts"] 9979daf2_230e_a718_81de_8244822dd03e -->|defined in| eb2f7d36_9d97_e74c_0d2e_fc25c2af688f style 9979daf2_230e_a718_81de_8244822dd03e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/language-tools/language-server/src/plugins/typescript/diagnostics.ts lines 5–14
export enum DiagnosticCodes {
IS_NOT_A_MODULE = 2306, // '{0}' is not a module.
CANNOT_FIND_MODULE = 2307, // Cannot find module '{0}' or its corresponding type declarations.
DUPLICATED_JSX_ATTRIBUTES = 17001, // JSX elements cannot have multiple attributes with the same name.
CANT_RETURN_OUTSIDE_FUNC = 1108, // A 'return' statement can only be used within a function body.
ISOLATED_MODULE_COMPILE_ERR = 1208, // '{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file.
TYPE_NOT_ASSIGNABLE = 2322, // Type '{0}' is not assignable to type '{1}'.
JSX_NO_CLOSING_TAG = 17008, // JSX element '{0}' has no corresponding closing tag.
JSX_ELEMENT_NO_CALL = 2604, // JSX element type '{0}' does not have any construct or call signatures.
}
Source
Frequently Asked Questions
What is the DiagnosticCodes type?
DiagnosticCodes is a type/interface in the astro codebase, defined in packages/language-tools/language-server/src/plugins/typescript/diagnostics.ts.
Where is DiagnosticCodes defined?
DiagnosticCodes is defined in packages/language-tools/language-server/src/plugins/typescript/diagnostics.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free