From 88340dca6ff764e4236357bc0fdbb6903422abc6 Mon Sep 17 00:00:00 2001 From: Morten Larsen Date: Wed, 11 Oct 2023 21:24:27 +0200 Subject: [PATCH] fix: Fix typings for default export (#114) --- src/types.d.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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