vue3-component-store
Version:
component store solution for vue 3
7 lines (5 loc) • 317 B
text/typescript
import { ComputedRef } from 'vue'
import {EmptyComponentStore, StoreFeature} from '../component-store.model'
export function withComputed<Store extends EmptyComponentStore = EmptyComponentStore, WithComputed extends Record<string, ComputedRef> = {}>(feature: StoreFeature<Store, WithComputed >) {
return feature
}