No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Eaglorn
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 4
    • Best 0
    • Groups 0

    Eaglorn

    @Eaglorn

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Eaglorn Follow

    Latest posts made by Eaglorn

    • TypeScript (Composition API vs Class-based)?

      What is the best choice?

      posted in Help
      E
      Eaglorn
    • Unsafe return of an any typed value
      <script lang="ts">
      import { defineComponent, ref, computed } from '@vue/composition-api';
      
      import { Store } from 'vuex';
      import { UserStateInterface } from '../store/user/state';
      
      export default defineComponent({
        name: 'MyLayout',
        setup(props, context) {
          let store = context.root.$store;
          let drawer = ref(false);
          let miniState = ref(true);
      
          console.log(store);
      
          let auth = computed(() => {
            return store.state.user;
          });
      
          function exit() {
            store.dispatch('user/exit');
          }
      
          return { auth, drawer, miniState };
        }
      });
      </script>
      
      let store: Store<any>
      Unsafe return of an any typed valueeslint@typescript-eslint/no-unsafe-return
      Unsafe member access .user on an any value.eslint@typescript-eslint/no-unsafe-member-access)
      
      posted in Help
      E
      Eaglorn