We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
async is removed with the export:
async
export
- export async function f() { + function f() { await fetch("https://example.com"); } export async function g() { await f(); }
It also removes unused positional function arguments in some cases it shouldn't. Here is a contrived example of that:
function f( options: Partial<{ fn: (url: string, unused: number, qs: string) => string; }> ) { return options.fn?.("https://example.com", 123, "q=1"); } export function g() { return f({ - fn(url, unused, qs) { + fn(url, qs) { return url + (qs.length > 0 ? `?${qs}` : ""); }, }); }
The text was updated successfully, but these errors were encountered:
@boromisp thank you! I will work on a fix!
Sorry, something went wrong.
I will separate the latter issue to #28
Successfully merging a pull request may close this issue.
async
is removed with theexport
:It also removes unused positional function arguments in some cases it shouldn't.
Here is a contrived example of that:
The text was updated successfully, but these errors were encountered: