UNPKG

@empathyco/x-components

Version:
13 lines 647 B
import { Dictionary } from '@empathyco/x-utils'; import { ComputedRef } from 'vue'; import { ExtractGetters, XModuleName } from '../x-modules/x-modules.types'; /** * Function which returns the requested getters as a dictionary of getters. * * @param module - The {@link XModuleName} of the getter. * @param getters - List of getters names. * @returns The requested getters from the module. * @public */ export declare function useGetter<Module extends XModuleName, GetterName extends keyof ExtractGetters<Module> & string>(module: Module, getters: GetterName[]): Dictionary<ComputedRef>; //# sourceMappingURL=use-getter.d.ts.map