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: helper type #3483

Merged
merged 1 commit into from
Feb 22, 2019
Merged

fix: helper type #3483

merged 1 commit into from
Feb 22, 2019

Conversation

whxaxes
Copy link
Member

@whxaxes whxaxes commented Feb 21, 2019

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

将 IHelper 改成继承 BaseContextClass ,在写 helper 的 extend 的时候,将 this type 指定为 IHelper 才能拿到 this.ctx ,顺便将 BaseContextClass 里的 ctx、app 等改成 protected ,在外部使用的时候就不会出现这些干扰类型。

@codecov
Copy link

codecov bot commented Feb 21, 2019

Codecov Report

Merging #3483 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3483   +/-   ##
=======================================
  Coverage   99.67%   99.67%           
=======================================
  Files          32       32           
  Lines         923      923           
=======================================
  Hits          920      920           
  Misses          3        3

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 969c3dd...508d49e. Read the comment docs.

@atian25 atian25 merged commit ac7e9a6 into master Feb 22, 2019
@atian25 atian25 deleted the fix-helper-type branch February 22, 2019 03:05
popomore pushed a commit that referenced this pull request Feb 22, 2019
fix: helper type (#3483)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants