Skip to content

Commit 37d6d9e

Browse files
committed
Add back SyntaxKind.Parameter and deprecate
1 parent f11ab3e commit 37d6d9e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/compiler/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ export const enum SyntaxKind {
231231
// Signature elements
232232
TypeParameter,
233233
ParameterDeclaration,
234+
/** @deprecated Use SyntaxKind.ParameterDeclaration */
235+
Parameter = ParameterDeclaration,
234236
Decorator,
235237
// TypeMember
236238
PropertySignature,

tests/baselines/reference/api/typescript.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3795,6 +3795,8 @@ declare namespace ts {
37953795
ComputedPropertyName = 167,
37963796
TypeParameter = 168,
37973797
ParameterDeclaration = 169,
3798+
/** @deprecated Use SyntaxKind.ParameterDeclaration */
3799+
Parameter = 169,
37983800
Decorator = 170,
37993801
PropertySignature = 171,
38003802
PropertyDeclaration = 172,

0 commit comments

Comments
 (0)