[Bug] Property 'fill' does not exist on type 'Chainable<JQuery<HTMLElement>>'
alexander-paterson opened this issue · 0 comments
alexander-paterson commented
I'm trying to use this in my typescript but after adding the plugin and adding the import statement when I use the .fill
command in my tests I'm getting a typescript error message.
Property 'fill' does not exist on type 'Chainable<JQuery<HTMLElement>>'.
I think I know roughly why it's happening, just not how to fix it.
Turns out you just need to change the compiler options in the tsconfig.json
file
{
"compilerOptions": {
"types": ["cypress", "cypress-fill-command"]
}
}