cypress-movie icon indicating copy to clipboard operation
cypress-movie copied to clipboard

Add TypeScript for custom commands

Open bahmutov opened this issue 4 years ago • 2 comments

bahmutov avatar Jul 02 '20 14:07 bahmutov

I used these types in the RWA and they worked

/** Toast command from cypress-movie  */
   toast(message: string, options?: {}): Chainable<void>;
/**clearViewport command from cypress-movie */
    clearViewport(): Chainable<void>;

CypressCecelia avatar Jul 09 '20 02:07 CypressCecelia

What would be a good way to include these? Is it something where we document the types or do we create an index.d.ts file that people can use or delete?

CypressCecelia avatar Jul 09 '20 18:07 CypressCecelia