plugin-graphql icon indicating copy to clipboard operation
plugin-graphql copied to clipboard

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

Open Arsync opened this issue 5 years ago • 0 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.

Arsync avatar Nov 16 '20 07:11 Arsync