vue3-component-store
Version:
component store solution for vue 3
9 lines (7 loc) • 301 B
text/typescript
import { EmptyComponentStore, StoreFeature } from '../component-store.model'
export function withMethods<
Store extends EmptyComponentStore = EmptyComponentStore,
WithMethod extends Record<string, (...args: any[]) => unknown> = {}
>(feature: StoreFeature<Store, WithMethod>) {
return feature
}