Skip to content

Commit

Permalink
fix: Fix typings for default export (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Larsen authored Oct 11, 2023
1 parent 965b977 commit 88340dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import type Cypress from 'cypress'
* Initializes the cypress-split plugin using Cypress config values.
* @see https://github.com/bahmutov/cypress-split
*/
export default function cypressSplit(
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions,
): void
interface CypressSplit {
(
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions,
): void;
}
declare var cypressSplit: CypressSplit
export = cypressSplit

0 comments on commit 88340dc

Please sign in to comment.