Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

[FR] Typings #33

Open
John0x opened this issue Jan 8, 2018 · 2 comments
Open

[FR] Typings #33

John0x opened this issue Jan 8, 2018 · 2 comments

Comments

@John0x
Copy link

John0x commented Jan 8, 2018

Having typings would be great :)
The getVue method cannot be found and there are some problems with Selector vs SelectorPromise types.

@jakubhomoly
Copy link

+1, I write my tests in TS and it would be really neat if tc.getVue() would not complain all the time

@cLupus
Copy link

cLupus commented Apr 29, 2019

This might help get you started,

declare module 'testcafe-vue-selectors' {
  import { Selector } from 'testcafe'
  export interface VueSelector extends Selector {
    getVue: () => {
      props: any
      state: any
      computed: any
      ref: any
    }
  }
  export default function VueSelector (name: string): VueSelector
}

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

No branches or pull requests

6 participants