UNPKG

13.5 kBTypeScriptView Raw
1/**
2 * Unique identifiers for messages reported by the TSDoc parser.
3 *
4 * @remarks
5 *
6 * These strings are possible values for the {@link ParserMessage.messageId} property.
7 * These identifiers can be used to suppress or configure the reporting of individual messages.
8 * They are also useful when searching for help about a particular error.
9 *
10 * @public
11 */
12export declare enum TSDocMessageId {
13 /**
14 * File not found
15 * @remarks
16 * Reported by the `@microsoft/tsdoc-config` package when it failed to find a `tsdoc.json` file.
17 */
18 ConfigFileNotFound = "tsdoc-config-file-not-found",
19 /**
20 * Error parsing JSON input: ___
21 * @remarks
22 * Reported by the `@microsoft/tsdoc-config` package when the `tsdoc.json` file has invalid JSON syntax.
23 */
24 ConfigInvalidJson = "tsdoc-config-invalid-json",
25 /**
26 * Unsupported JSON "$schema" value
27 * @remarks
28 * Reported by the `@microsoft/tsdoc-config` package when the file format is not supported.
29 */
30 ConfigFileUnsupportedSchema = "tsdoc-config-unsupported-schema",
31 /**
32 * Error loading config file: ___
33 * @remarks
34 * Reported by the `@microsoft/tsdoc-config` package when the config file doesn't conform to its schema.
35 */
36 ConfigFileSchemaError = "tsdoc-config-schema-error",
37 /**
38 * Circular reference encountered for "extends" field of "___"
39 * @remarks
40 * Reported by the `@microsoft/tsdoc-config` package when the "extends" field creates a chain of references
41 * that causes a file to indirectly extend itself.
42 */
43 ConfigFileCyclicExtends = "tsdoc-config-cyclic-extends",
44 /**
45 * Unable to resolve "extends" reference to "___"
46 * @remarks
47 * Reported by the `@microsoft/tsdoc-config` package when module resolution fails for the "extends" field.
48 */
49 ConfigFileUnresolvedExtends = "tsdoc-config-unresolved-extends",
50 /**
51 * The "supportForTags" field refers to an undefined tag "___".
52 * @remarks
53 * Reported by the `@microsoft/tsdoc-config` package when loading the tsdoc.json config file.
54 */
55 ConfigFileUndefinedTag = "tsdoc-config-undefined-tag",
56 /**
57 * The "tagDefinitions" field specifies more than one tag with the name "___".
58 * @remarks
59 * Reported by the `@microsoft/tsdoc-config` package when loading the tsdoc.json config file.
60 */
61 ConfigFileDuplicateTagName = "tsdoc-config-duplicate-tag-name",
62 /**
63 * A TSDoc tag name must start with a letter and contain only letters and numbers.
64 * @remarks
65 * Reported by the `@microsoft/tsdoc-config` package when loading the tsdoc.json config file.
66 */
67 ConfigFileInvalidTagName = "tsdoc-config-invalid-tag-name",
68 /**
69 * Expecting a `/**` comment.
70 * Unexpected end of input.
71 */
72 CommentNotFound = "tsdoc-comment-not-found",
73 /**
74 * Expecting a leading `/**`
75 */
76 CommentOpeningDelimiterSyntax = "tsdoc-comment-missing-opening-delimiter",
77 /**
78 * Unexpected end of input.
79 */
80 CommentMissingClosingDelimiter = "tsdoc-comment-missing-closing-delimiter",
81 /**
82 * A doc comment cannot have more than one `@inheritDoc` tag
83 */
84 ExtraInheritDocTag = "tsdoc-extra-inheritdoc-tag",
85 /**
86 * The `}` character should be escaped using a backslash to avoid confusion with a TSDoc inline tag.
87 */
88 EscapeRightBrace = "tsdoc-escape-right-brace",
89 /**
90 * The `>` character should be escaped using a backslash to avoid confusion with an HTML tag.
91 */
92 EscapeGreaterThan = "tsdoc-escape-greater-than",
93 /**
94 * The ___ block must include a deprecation message, e.g. describing the recommended alternative.
95 */
96 MissingDeprecationMessage = "tsdoc-missing-deprecation-message",
97 /**
98 * A ___ block must not be used, because that content is provided by the `@inheritDoc` tag.
99 */
100 InheritDocIncompatibleTag = "tsdoc-inheritdoc-incompatible-tag",
101 /**
102 * The summary section must not have any content, because that content is provided by the `@inheritDoc` tag.
103 */
104 InheritDocIncompatibleSummary = "tsdoc-inheritdoc-incompatible-summary",
105 /**
106 * The TSDoc tag ___ is an inline tag; it must be enclosed in `{ }` braces.
107 */
108 InlineTagMissingBraces = "tsdoc-inline-tag-missing-braces",
109 /**
110 * The TSDoc tag ___ is not an inline tag; it must not be enclosed in `{ }` braces.
111 */
112 TagShouldNotHaveBraces = "tsdoc-tag-should-not-have-braces",
113 /**
114 * The TSDoc tag ___ is not supported by this tool.
115 */
116 UnsupportedTag = "tsdoc-unsupported-tag",
117 /**
118 * The TSDoc tag ___ is not defined in this configuration.
119 */
120 UndefinedTag = "tsdoc-undefined-tag",
121 /**
122 * The `@param` block should not include a JSDoc-style `{type}`.
123 */
124 ParamTagWithInvalidType = "tsdoc-param-tag-with-invalid-type",
125 /**
126 * The `@param` block should not include a JSDoc-style optional name; it must not be enclosed in `[ ]` brackets.
127 */
128 ParamTagWithInvalidOptionalName = "tsdoc-param-tag-with-invalid-optional-name",
129 /**
130 * The `@param` block should be followed by a parameter name.
131 */
132 ParamTagWithInvalidName = "tsdoc-param-tag-with-invalid-name",
133 /**
134 * The `@param` block should be followed by a parameter name and then a hyphen.
135 */
136 ParamTagMissingHyphen = "tsdoc-param-tag-missing-hyphen",
137 /**
138 * A backslash must precede another character that is being escaped. OR
139 * A backslash can only be used to escape a punctuation character.
140 */
141 UnnecessaryBackslash = "tsdoc-unnecessary-backslash",
142 /**
143 * Expecting a TSDoc tag starting with `@`. OR
144 * Expecting a TSDoc tag starting with `{`.
145 */
146 MissingTag = "tsdoc-missing-tag",
147 /**
148 * The `@` character looks like part of a TSDoc tag; use a backslash to escape it.
149 */
150 AtSignInWord = "tsdoc-at-sign-in-word",
151 /**
152 * Expecting a TSDoc tag name after `@`; if it is not a tag, use a backslash to escape this character.
153 */
154 AtSignWithoutTagName = "tsdoc-at-sign-without-tag-name",
155 /**
156 * Expecting a TSDoc tag starting with `{@`. OR
157 * Expecting a TSDoc inline tag name after the `{@` characters.
158 */
159 MalformedInlineTag = "tsdoc-malformed-inline-tag",
160 /**
161 * The token ___ looks like a TSDoc tag but contains an invalid character ___; if it is not a tag,
162 * use a backslash to escape the `@`.
163 */
164 CharactersAfterBlockTag = "tsdoc-characters-after-block-tag",
165 /**
166 * A TSDoc tag name must start with a letter and contain only letters and numbers.
167 */
168 MalformedTagName = "tsdoc-malformed-tag-name",
169 /**
170 * The character ___ cannot appear after the TSDoc tag name; expecting a space.
171 */
172 CharactersAfterInlineTag = "tsdoc-characters-after-inline-tag",
173 /**
174 * The TSDoc inline tag name is missing its closing `}`.
175 */
176 InlineTagMissingRightBrace = "tsdoc-inline-tag-missing-right-brace",
177 /**
178 * The `{` character must be escaped with a backslash when used inside a TSDoc inline tag.
179 */
180 InlineTagUnescapedBrace = "tsdoc-inline-tag-unescaped-brace",
181 /**
182 * Unexpected character after declaration reference.
183 */
184 InheritDocTagSyntax = "tsdoc-inheritdoc-tag-syntax",
185 /**
186 * The `@link` tag content is missing.
187 */
188 LinkTagEmpty = "tsdoc-link-tag-empty",
189 /**
190 * The ___ character may not be used in the link text without escaping it.
191 */
192 LinkTagUnescapedText = "tsdoc-link-tag-unescaped-text",
193 /**
194 * Unexpected character after link destination.
195 */
196 LinkTagDestinationSyntax = "tsdoc-link-tag-destination-syntax",
197 /**
198 * The URL cannot be empty. OR
199 * An `@link` URL must begin with a scheme comprised only of letters and numbers followed by `://`. OR
200 * An `@link` URL must have at least one character after `://`.
201 */
202 LinkTagInvalidUrl = "tsdoc-link-tag-invalid-url",
203 /**
204 * The declaration reference appears to contain a package name or import path, but it is missing the `#` delimiter.
205 */
206 ReferenceMissingHash = "tsdoc-reference-missing-hash",
207 /**
208 * The hash character must be preceded by a package name or import path.
209 */
210 ReferenceHashSyntax = "tsdoc-reference-hash-syntax",
211 /**
212 * The package name cannot be an empty string. OR
213 * The package name ___ is not a valid package name.
214 */
215 ReferenceMalformedPackageName = "tsdoc-reference-malformed-package-name",
216 /**
217 * An import path must not contain `//`. OR
218 * An import path must not end with `/`. OR
219 * An import path must not start with `/` unless prefixed by a package name.
220 */
221 ReferenceMalformedImportPath = "tsdoc-reference-malformed-import-path",
222 /**
223 * Expecting a declaration reference.
224 */
225 MissingReference = "tsdoc-missing-reference",
226 /**
227 * Expecting a period before the next component of a declaration reference
228 */
229 ReferenceMissingDot = "tsdoc-reference-missing-dot",
230 /**
231 * Syntax error in declaration reference: the member selector must be enclosed in parentheses.
232 */
233 ReferenceSelectorMissingParens = "tsdoc-reference-selector-missing-parens",
234 /**
235 * Expecting a colon after the identifier because the expression is in parentheses.
236 */
237 ReferenceMissingColon = "tsdoc-reference-missing-colon",
238 /**
239 * Expecting a matching right parenthesis.
240 */
241 ReferenceMissingRightParen = "tsdoc-reference-missing-right-paren",
242 /**
243 * Missing declaration reference in symbol reference
244 */
245 ReferenceSymbolSyntax = "tsdoc-reference-symbol-syntax",
246 /**
247 * Missing closing square bracket for symbol reference
248 */
249 ReferenceMissingRightBracket = "tsdoc-reference-missing-right-bracket",
250 /**
251 * Unexpected end of input inside quoted member identifier.
252 */
253 ReferenceMissingQuote = "tsdoc-reference-missing-quote",
254 /**
255 * The quoted identifier cannot be empty.
256 */
257 ReferenceEmptyIdentifier = "tsdoc-reference-empty-identifier",
258 /**
259 * Syntax error in declaration reference: expecting a member identifier.
260 */
261 ReferenceMissingIdentifier = "tsdoc-reference-missing-identifier",
262 /**
263 * The identifier cannot be an empty string. OR
264 * The identifier cannot non-word characters. OR
265 * The identifier must not start with a number. OR
266 * The identifier ___ must be quoted because it is a TSDoc system selector name.
267 */
268 ReferenceUnquotedIdentifier = "tsdoc-reference-unquoted-identifier",
269 /**
270 * Expecting a selector label after the colon.
271 */
272 ReferenceMissingLabel = "tsdoc-reference-missing-label",
273 /**
274 * The selector cannot be an empty string. OR
275 * If the selector begins with a number, it must be a positive integer value. OR
276 * A label selector must be comprised of upper case letters, numbers, and underscores
277 * and must not start with a number. OR
278 * The selector ___ is not a recognized TSDoc system selector name.
279 */
280 ReferenceSelectorSyntax = "tsdoc-reference-selector-syntax",
281 /**
282 * Expecting an attribute or `>` or `/>`.
283 */
284 HtmlTagMissingGreaterThan = "tsdoc-html-tag-missing-greater-than",
285 /**
286 * Expecting `=` after HTML attribute name.
287 */
288 HtmlTagMissingEquals = "tsdoc-html-tag-missing-equals",
289 /**
290 * Expecting an HTML string starting with a single-quote or double-quote character.
291 */
292 HtmlTagMissingString = "tsdoc-html-tag-missing-string",
293 /**
294 * The HTML string is missing its closing quote.
295 */
296 HtmlStringMissingQuote = "tsdoc-html-string-missing-quote",
297 /**
298 * The next character after a closing quote must be spacing or punctuation.
299 */
300 TextAfterHtmlString = "tsdoc-text-after-html-string",
301 /**
302 * Expecting an HTML tag starting with `</`.
303 */
304 MissingHtmlEndTag = "tsdoc-missing-html-end-tag",
305 /**
306 * A space is not allowed here. OR
307 * Expecting an HTML name. OR
308 * An HTML name must be a sequence of letters separated by hyphens.
309 */
310 MalformedHtmlName = "tsdoc-malformed-html-name",
311 /**
312 * This HTML element name is not defined by your TSDoc configuration.
313 */
314 UnsupportedHtmlElementName = "tsdoc-unsupported-html-name",
315 /**
316 * The opening backtick for a code fence must appear at the start of the line.
317 */
318 CodeFenceOpeningIndent = "tsdoc-code-fence-opening-indent",
319 /**
320 * The language specifier cannot contain backtick characters.
321 */
322 CodeFenceSpecifierSyntax = "tsdoc-code-fence-specifier-syntax",
323 /**
324 * The closing delimiter for a code fence must not be indented.
325 */
326 CodeFenceClosingIndent = "tsdoc-code-fence-closing-indent",
327 /**
328 * Missing closing delimiter.
329 */
330 CodeFenceMissingDelimiter = "tsdoc-code-fence-missing-delimiter",
331 /**
332 * Unexpected characters after closing delimiter for code fence.
333 */
334 CodeFenceClosingSyntax = "tsdoc-code-fence-closing-syntax",
335 /**
336 * A code span must contain at least one character between the backticks.
337 */
338 CodeSpanEmpty = "tsdoc-code-span-empty",
339 /**
340 * The code span is missing its closing backtick.
341 */
342 CodeSpanMissingDelimiter = "tsdoc-code-span-missing-delimiter"
343}
344export declare const allTsdocMessageIds: string[];
345export declare const allTsdocMessageIdsSet: ReadonlySet<string>;
346//# sourceMappingURL=TSDocMessageId.d.ts.map
\No newline at end of file