node_modules/pinia/dist/pinia.iife.js
/**
   * Creates an object of references with all the state, getters, and plugin-added
   * state properties of the store. Similar to `toRefs()` but specifically
   * designed for Pinia stores so methods and non reactive properties are
   * completely ignored.
   *
   * @param store - store to extract the refs from
   */
Creates an object of references with all the state, getters, and plugin-added
state properties of the store. Similar to `toRefs()` but specifically
designed for Pinia stores so methods and non reactive properties are
completely ignored.

@param store - store to extract the refs from
Creates an object of references with all the state getters and plugin - added state properties of the store . Similar to ` toRefs () ` but specifically designed for Pinia stores so methods and non reactive properties are completely ignored . @param store - store to extract the refs from
function storeToRefs(store) {
      if (vueDemi.isVue2) {
          console.warn('[Pinia]: "storeToRefs()" currently only works on Vue 3 until https://github.com/vuejs/pinia/issues/852 is fixed. Please, use "toRefs()" (from vue) instead. This will FAIL in production if not changed.');
          return vueDemi.toRefs(store);
      }
      store = vueDemi.toRaw(store);
      const refs = {};
      for (const key in store) {
          const value = store[key];
          if (vueDemi.isRef(value) || vueDemi.isReactive(value)) {
              refs[key] =
                  vueDemi.toRef(store, key);
          }
      }
      return refs;
  }
function storeToRefs ( store ) { if ( vueDemi . isVue2 ) { console . warn ( '[Pinia]: "storeToRefs()" currently only works on Vue 3 until https://github.com/vuejs/pinia/issues/852 is fixed. Please, use "toRefs()" (from vue) instead. This will FAIL in production if not changed.' ) ; return vueDemi . toRefs ( store ) ; } store = vueDemi . toRaw ( store ) ; const refs = { } ; for ( const key in store ) { const value = store [ key ] ; if ( vueDemi . isRef ( value ) || vueDemi . isReactive ( value ) ) { refs [ key ] = vueDemi . toRef ( store , key ) ; } } return refs ; }
Creates an object of references with all the state, getters, and plugin-added
 state properties of the store.
Creates an object of references with all the state getters and plugin - added state properties of the store .
// @ts-expect-error: toRefs include methods and others // @ts-expect-error: the key is state or getter // ---