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

抽象Service,会导致类型丢失。 #61

Open
joey-lucky opened this issue Mar 29, 2020 · 2 comments
Open

抽象Service,会导致类型丢失。 #61

joey-lucky opened this issue Mar 29, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@joey-lucky
Copy link

export default abstract class Bill extends Service{

}

抽象的Service,会导致 this.service.bill类型为Function,而不是对象。

@whxaxes whxaxes added the bug Something isn't working label Mar 30, 2020
@whxaxes
Copy link
Member

whxaxes commented Mar 30, 2020

嗯,应该是条件类型判断的问题,我修复一下

@whxaxes
Copy link
Member

whxaxes commented Jun 3, 2020

abstract class 本来就不是用来使用的,你这个用法也是有问题的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants