Skip to content
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

refactor(ast): override TS type defs with #[estree(custom_ts_def)] attribute on type #8897

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Feb 4, 2025

Instead of an extra file custom_types.d.ts containing type definitions for a few types where we need to override the TS type def, include those TS definitions in #[estree(custom_ts_def = "...")] attribute on the Rust types.

@github-actions github-actions bot added A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Feb 4, 2025
This was referenced Feb 4, 2025
Copy link
Contributor Author

overlookmotel commented Feb 4, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

codspeed-hq bot commented Feb 4, 2025

CodSpeed Performance Report

Merging #8897 will not alter performance

Comparing 02-04-refactor_ast_override_ts_type_defs_with_estree_custom_ts_def_attribute_on_type (223eb8d) with 02-04-refactor_ast_tools_improve_correctness_and_performance_of_idents (6185619)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 02-04-refactor_ast_override_ts_type_defs_with_estree_custom_ts_def_attribute_on_type branch from ef44aba to d4eb7a7 Compare February 4, 2025 14:10
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Feb 4, 2025
@overlookmotel overlookmotel force-pushed the 02-04-refactor_ast_tools_improve_correctness_and_performance_of_idents branch from 6b8e955 to 7c8743e Compare February 4, 2025 21:56
@overlookmotel overlookmotel force-pushed the 02-04-refactor_ast_override_ts_type_defs_with_estree_custom_ts_def_attribute_on_type branch from d4eb7a7 to 5046b09 Compare February 4, 2025 21:56
Copy link

graphite-app bot commented Feb 4, 2025

Merge activity

  • Feb 4, 5:21 PM EST: The Graphite merge queue removed this pull request due to downstack failures on PR #8881.
  • Feb 4, 10:23 PM UTC: The merge label '0-merge' was removed. This PR will no longer be merged by the Graphite merge queue
  • Feb 4, 10:24 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 4, 10:25 PM UTC: The merge label '0-merge' was removed. This PR will no longer be merged by the Graphite merge queue
  • Feb 4, 10:25 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 4, 10:29 PM UTC: A user added this pull request to the Graphite merge queue.
  • Feb 4, 11:13 PM UTC: A user merged this pull request with the Graphite merge queue.

@graphite-app graphite-app bot added 0-merge Merge with Graphite Merge Queue and removed 0-merge Merge with Graphite Merge Queue labels Feb 4, 2025
…attribute on type (#8897)

Instead of an extra file `custom_types.d.ts` containing type definitions for a few types where we need to override the TS type def, include those TS definitions in `#[estree(custom_ts_def = "...")]` attribute on the Rust types.
@graphite-app graphite-app bot force-pushed the 02-04-refactor_ast_tools_improve_correctness_and_performance_of_idents branch from 7c8743e to 6185619 Compare February 4, 2025 22:36
@graphite-app graphite-app bot force-pushed the 02-04-refactor_ast_override_ts_type_defs_with_estree_custom_ts_def_attribute_on_type branch from 5046b09 to 223eb8d Compare February 4, 2025 22:36
Base automatically changed from 02-04-refactor_ast_tools_improve_correctness_and_performance_of_idents to main February 4, 2025 23:10
@graphite-app graphite-app bot merged commit 223eb8d into main Feb 4, 2025
28 checks passed
@graphite-app graphite-app bot deleted the 02-04-refactor_ast_override_ts_type_defs_with_estree_custom_ts_def_attribute_on_type branch February 4, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant