Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I fixed up @rub1e's #232 solution for #230. I amended the commit so credit can go where it's due. There was an extra parentheses that created an error in the typescript compiler and the linter error was rendered on the wrong line in github.
I found the cause of the issue.
The typescript transpilation rewrites the import of the local fetch module to a commonjs require.
When transpiled
src/run_action.ts
translates to this line in
lib/run_action.js
and so the window fetch method is called on
fetch_1
as it'sthis
.