vuex-orm / plugin-graphql

Vuex ORM persistence plugin to sync the store against a GraphQL API.

Home Page:https://vuex-orm.github.io/plugin-graphql/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where to get type definitions for 'fetch' in TypeScript?

Arsync opened this issue · comments

The 'fetch' is not exists on Model.

For example, as it shown here in manuals:

await Comment.fetch('42'); // Unsafe call of an any typed value.
// or
await Comment.fetch({ id: '42' }); // Unsafe call of an any typed value.
// or
await Comment.dispatch('fetch', { filter: { id: '42' }}) // Ok, this one works.

we got 'Unsafe call of an any typed value' error.