typescript 阿比 - 1.ts
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript 阿比 - 1.ts相关的知识,希望对你有一定的参考价值。
const initialState: ProductsState = {
ui: {
filters: {
condition: {
new: false,
used: false,
notSpecified: false,
},
location: false,
}
}
}
@StoreConfig({ name: 'products' })
export class ProductsStore extends EntityStore<ProductsState, Product> {
constructor() {
super(initialState);
}
}
export class ProductsQuery extends QueryEntity<ProductsState, Product> {
filtersChange$ = this.select(state => state.ui.filters);
constructor(protected store: ProductsStore) {
super(store);
}
}
以上是关于typescript 阿比 - 1.ts的主要内容,如果未能解决你的问题,请参考以下文章
typescript 阿比 - 4.ts
typescript 阿比 - 3.ts
TypeScript教程# 1:TS简介
typescript 1.9-1.ts
typescript 1.8-1.ts
typescript 1.ts