node_modules/pinia/dist/pinia.iife.js
/**
   * Allows directly using actions from your store without using the composition
   * API (`setup()`) by generating an object to be spread in the `methods` field
   * of a component.
   *
   * @param useStore - store to map from
   * @param keysOrMapper - array or object
   */
Allows directly using actions from your store without using the composition
API (`setup()`) by generating an object to be spread in the `methods` field
of a component.

@param useStore - store to map from
@param keysOrMapper - array or object
Allows directly using actions from your store without using the composition API ( ` setup () ` ) by generating an object to be spread in the ` methods ` field of a component . @param useStore - store to map from @param keysOrMapper - array or object
function mapActions(useStore, keysOrMapper) {
      return Array.isArray(keysOrMapper)
          ? keysOrMapper.reduce((reduced, key) => {
              reduced[key] = function (...args) {
                  return useStore(this.$pinia)[key](...args);
              };
              return reduced;
          }, {})
          : Object.keys(keysOrMapper).reduce((reduced, key) => {
              reduced[key] = function (...args) {
                  return useStore(this.$pinia)[keysOrMapper[key]](...args);
              };
              return reduced;
          }, {});
  }
function mapActions ( useStore , keysOrMapper ) { return Array . isArray ( keysOrMapper ) ? keysOrMapper . reduce ( ( reduced , key ) => { reduced [ key ] = function ( ... args ) { return useStore ( this . $pinia ) [ key ] ( ... args ) ; } ; return reduced ; } , { } ) : Object . keys ( keysOrMapper ) . reduce ( ( reduced , key ) => { reduced [ key ] = function ( ... args ) { return useStore ( this . $pinia ) [ keysOrMapper [ key ] ] ( ... args ) ; } ; return reduced ; } , { } ) ; }
Allows directly using actions from your store without using the composition
 API (`setup()`) by generating an object to be spread in the `methods` field
 of a component.
Allows directly using actions from your store without using the composition API ( ` setup () ` ) by generating an object to be spread in the ` methods ` field of a component .
// @ts-expect-error // @ts-expect-error