Skip to content

Commit 318c3ff

Browse files
authored
Merge pull request #306 from samisayegh/master
[tsdoc] remove "const" keyword before enum to use with typescript isolatedModules
2 parents 89abdbc + a707738 commit 318c3ff

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/tsdoc",
5+
"comment": "remove \"const\" keyword before enums to allow use with typescript isolatedModules",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/tsdoc",
10+
"email": "[email protected]"
11+
}

tsdoc/etc/tsdoc.api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export abstract class DocNodeContainer extends DocNode {
299299
}
300300

301301
// @public
302-
export const enum DocNodeKind {
302+
export enum DocNodeKind {
303303
// (undocumented)
304304
Block = "Block",
305305
// (undocumented)
@@ -440,7 +440,7 @@ export enum EscapeStyle {
440440
}
441441

442442
// @public
443-
export const enum ExcerptKind {
443+
export enum ExcerptKind {
444444
// (undocumented)
445445
BlockTag = "BlockTag",
446446
// (undocumented)
@@ -1095,15 +1095,15 @@ export class PlainTextEmitter {
10951095
}
10961096

10971097
// @public
1098-
export const enum SelectorKind {
1098+
export enum SelectorKind {
10991099
Error = "error",
11001100
Index = "index",
11011101
Label = "label",
11021102
System = "system"
11031103
}
11041104

11051105
// @public
1106-
export const enum Standardization {
1106+
export enum Standardization {
11071107
Core = "Core",
11081108
Discretionary = "Discretionary",
11091109
Extended = "Extended",
@@ -1269,7 +1269,7 @@ export class TSDocEmitter {
12691269
}
12701270

12711271
// @public
1272-
export const enum TSDocMessageId {
1272+
export enum TSDocMessageId {
12731273
AtSignInWord = "tsdoc-at-sign-in-word",
12741274
AtSignWithoutTagName = "tsdoc-at-sign-without-tag-name",
12751275
CharactersAfterBlockTag = "tsdoc-characters-after-block-tag",

tsdoc/src/details/Standardization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Used to group the {@link StandardTags} definitions according to the level of support
33
* expected from documentation tools that implement the standard.
44
*/
5-
export const enum Standardization {
5+
export enum Standardization {
66
/**
77
* TSDoc tags in the "Core" standardization group are considered essential.
88
* Their meaning is standardized, and every documentation tool is expected

tsdoc/src/nodes/DocExcerpt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { TokenKind } from '../parser/Token';
77
/**
88
* Indicates the type of {@link DocExcerpt}.
99
*/
10-
export const enum ExcerptKind {
10+
export enum ExcerptKind {
1111
Spacing = 'Spacing',
1212

1313
BlockTag = 'BlockTag',

tsdoc/src/nodes/DocMemberSelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DocExcerpt, ExcerptKind } from './DocExcerpt';
66
/**
77
* Kinds of TSDoc selectors.
88
*/
9-
export const enum SelectorKind {
9+
export enum SelectorKind {
1010
/**
1111
* Used in cases where the parser encounters a string that is incorrect but
1212
* valid enough that a DocMemberSelector node was created.

tsdoc/src/nodes/DocNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { TSDocConfiguration } from '../configuration/TSDocConfiguration';
88
* To avoid naming conflicts between projects, the enum value should be a string comprised of your full
99
* NPM package name, followed by a "#" symbol, followed by the class name (without the "Doc" prefix).
1010
*/
11-
export const enum DocNodeKind {
11+
export enum DocNodeKind {
1212
Block = 'Block',
1313
BlockTag = 'BlockTag',
1414
Excerpt = 'Excerpt',

tsdoc/src/parser/TSDocMessageId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @public
1111
*/
12-
export const enum TSDocMessageId {
12+
export enum TSDocMessageId {
1313
/**
1414
* File not found
1515
* @remarks

0 commit comments

Comments
 (0)