diff --git a/src/types.d.ts b/src/types.d.ts index 0b062a5..b0381c6 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -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