Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_js_analyze): support unused bindings inside typescript function type #3060

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

xunilrj
Copy link
Contributor

@xunilrj xunilrj commented Aug 15, 2022

Summary

Expands #2979.
Accept "unused variable" when it is a binding inside Typescript function type. Example:

function f(fn: (title: string) => boolean) { }

title is not used, but it is useful here.

Test Plan

> cargo test -p rome_js_analyze

@xunilrj xunilrj requested a review from leops as a code owner August 15, 2022 12:15
@xunilrj xunilrj temporarily deployed to aws August 15, 2022 12:15 Inactive
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 95dfb99
Status: ✅  Deploy successful!
Preview URL: https://6d9f0cbb.tools-8rn.pages.dev
Branch Preview URL: https://feature-no-unused-variable-t.tools-8rn.pages.dev

View logs

@xunilrj xunilrj changed the title support unused bindings inside typescript function type feat(rome_js_analyze): support unused bindings inside typescript function type Aug 15, 2022
@github-actions
Copy link

@xunilrj xunilrj merged commit 124af3b into main Aug 16, 2022
@xunilrj xunilrj deleted the feature/no-unused-variable-ts-function-type branch August 16, 2022 12:52
IWANABETHATGUY pushed a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants