question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue Wait with Typescript

See original GitHub issue

I think that in Readme should be present a section for using this plugin in typescript. To add the property “wait” to new Vue({wait: new VueWait()}) you need to define a type definitions like the one attached, otherwise will be raised an error because the property does not exist. vue-wait-property.d.ts.zip

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
fraparisicommented, Dec 21, 2018

Or better is possible to include it directly in the library itself. Like vue-axios does.

1reaction
Sunhatcommented, Aug 2, 2020

I’m having issues with

import { waitFor } from 'vue-wait';

Any info on this?

Module '"node_modules/vue-wait"' has no exported member 'waitFor'. Did you mean to use 'import waitFor from "node_modules/vue-wait/src/types"' instead? ts(2614)
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I use async/await in the Vue 3.0 setup() function ...
I'm trying to use async functionality in Vue3.0 using typescript. Without async this code works nice: // file: components/HelloWorld.vue < ...
Read more >
vue-wait - npm
vue -wait helps to manage multiple loading states on the page without any conflict. It's based on a very simple idea that manages...
Read more >
Async/Await in NativeScript-Vue with TypeScript - YouTube
In this short Vue NativeScript tutorial, I show you how to convert a Promise chain to async- await in a NativeScript- Vue application....
Read more >
How can I use async/await in the Vue 3.0 setup() function ...
Coding example for the question How can I use async/await in the Vue 3.0 setup() function using Typescript-Vue.js.
Read more >
Vue: <script setup> top-Level await causes typescript compiler ...
Vue : <script setup> top-Level await causes typescript compiler error id there are 2 script blocks in the file · 1. git clone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found