Issue
new BaseListState<BrandCriteria, Brand>()
This is working and I add
export type BrandListState = BaseListState<BrandCriteria, Brand>;
then
new BrandListState()
This is not allowed. Any way to fix this problem?
Solution
You're using a Type Alias (see doco here) which doesn't have constructor, so it can't be created with new
. You need to create class for this
class BrandListState extends BaseListState<BrandCriteria, Brand> {}
Answered By - Damian Plewa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.