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

Fix #911 TypeScript error when using builtin onlyViewActions middleware #912

Merged
merged 2 commits into from
May 11, 2021

Conversation

seratch
Copy link
Member

@seratch seratch commented May 11, 2021

Summary

This pull request resolves #911. Refer to the issue for details.

Requirements (place an x in each [ ])

@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:minor TypeScript-specific labels May 11, 2021
@seratch seratch added this to the 3.4.0 milestone May 11, 2021
@seratch seratch requested review from mwbrooks and stevengill May 11, 2021 09:41
@seratch seratch self-assigned this May 11, 2021
@@ -4,6 +4,7 @@ import { ListenOptions } from 'net';
import { parse as qsParse } from 'querystring';
import { Logger, ConsoleLogger, LogLevel } from '@slack/logger';
import { InstallProvider, CallbackOptions, InstallProviderOptions, InstallURLOptions } from '@slack/oauth';
import { URL } from 'url';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not related to this issue but I found that tsd with the latest type definition fails with the following error:

> @slack/bolt@3.3.0 test:types /Users/ksera/github/bolt-js
> tsd


  src/receivers/HTTPReceiver.ts:237:35
  ✖  237:35  Cannot find name URL.

  1 error

npm ERR! code ELIFECYCLE

@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #912 (144cefc) into main (bb1f2e1) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #912      +/-   ##
==========================================
+ Coverage   66.19%   66.22%   +0.02%     
==========================================
  Files          13       13              
  Lines        1204     1205       +1     
  Branches      355      355              
==========================================
+ Hits          797      798       +1     
  Misses        338      338              
  Partials       69       69              
Impacted Files Coverage Δ
src/middleware/builtin.ts 84.09% <100.00%> (ø)
src/receivers/HTTPReceiver.ts 17.64% <100.00%> (+0.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb1f2e1...144cefc. Read the comment docs.

@seratch seratch merged commit b0d733a into slackapi:main May 11, 2021
@seratch seratch deleted the issue-911-type-error branch May 11, 2021 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:minor TypeScript-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript error when using builtin onlyViewActions middleware
2 participants