Skip to content

feat(ast-spec): remove deprecated type params #8933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ export default tseslint.config(
'react/jsx-no-target-blank': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/exhaustive-deps': 'warn', // TODO: enable it later
'react/prop-types': 'off',
},
settings: {
react: {
Expand Down
4 changes: 0 additions & 4 deletions packages/ast-spec/src/base/ClassBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ export interface ClassBase extends BaseNode {
* The generic type parameters passed to the superClass.
*/
superTypeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `superTypeArguments`} instead. */
superTypeParameters: TSTypeParameterInstantiation | undefined;

/**
* The generic type parameters declared for the class.
*/
Expand Down
3 changes: 0 additions & 3 deletions packages/ast-spec/src/base/TSHeritageBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ export interface TSHeritageBase extends BaseNode {
// TODO(#1852) - this should be restricted to MemberExpression | Identifier
expression: Expression;
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;
}
4 changes: 0 additions & 4 deletions packages/ast-spec/src/expression/CallExpression/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ export interface CallExpression extends BaseNode {
callee: LeftHandSideExpression;
arguments: CallExpressionArgument[];
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;

optional: boolean;
}
3 changes: 0 additions & 3 deletions packages/ast-spec/src/expression/NewExpression/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ export interface NewExpression extends BaseNode {
callee: LeftHandSideExpression;
arguments: CallExpressionArgument[];
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ export interface TSInstantiationExpression extends BaseNode {
type: AST_NODE_TYPES.TSInstantiationExpression;
expression: Expression;
typeArguments: TSTypeParameterInstantiation;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters?: TSTypeParameterInstantiation;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import type { TemplateLiteral } from '../TemplateLiteral/spec';
export interface TaggedTemplateExpression extends BaseNode {
type: AST_NODE_TYPES.TaggedTemplateExpression;
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;

tag: LeftHandSideExpression;
quasi: TemplateLiteral;
}
4 changes: 0 additions & 4 deletions packages/ast-spec/src/jsx/JSXOpeningElement/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import type { JSXSpreadAttribute } from '../JSXSpreadAttribute/spec';
export interface JSXOpeningElement extends BaseNode {
type: AST_NODE_TYPES.JSXOpeningElement;
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;

selfClosing: boolean;
name: JSXTagNameExpression;
attributes: (JSXAttribute | JSXSpreadAttribute)[];
Expand Down
3 changes: 0 additions & 3 deletions packages/ast-spec/src/type/TSImportType/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ export interface TSImportType extends BaseNode {
argument: TypeNode;
qualifier: EntityName | null;
typeArguments: TSTypeParameterInstantiation | null;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | null;
}
3 changes: 0 additions & 3 deletions packages/ast-spec/src/type/TSTypeQuery/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ export interface TSTypeQuery extends BaseNode {
type: AST_NODE_TYPES.TSTypeQuery;
exprName: EntityName | TSImportType;
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;
}
4 changes: 0 additions & 4 deletions packages/ast-spec/src/type/TSTypeReference/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@ import type { EntityName } from '../../unions/EntityName';
export interface TSTypeReference extends BaseNode {
type: AST_NODE_TYPES.TSTypeReference;
typeArguments: TSTypeParameterInstantiation | undefined;

/** @deprecated Use {@link `typeArguments`} instead. */
typeParameters: TSTypeParameterInstantiation | undefined;

typeName: EntityName;
}
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy