bahmutov / cypress-movie

Generate movies from your Cypress end-to-end tests
98 stars 10 forks source link

Add TypeScript for custom commands #34

Open bahmutov opened 4 years ago

CypressCecelia commented 4 years ago

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 commented 4 years ago

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?