Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arsync opened this issue Nov 16, 2020 · 0 comments
Open

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

Arsync opened this issue Nov 16, 2020 · 0 comments

Comments

@Arsync
Copy link

Arsync commented Nov 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant