From 721cd8f3ebfac64d11d0180c454dca18dc10ce8e Mon Sep 17 00:00:00 2001 From: ssube Date: Wed, 21 Jul 2021 00:01:01 -0500 Subject: [PATCH] remove unused types --- package.json | 2 +- src/index.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7286241..854dbea 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "esm": "^3.2.25", - "fast-check": "^2.17.0", "mocha": "<9.0.0", "nyc": "^15.1.0", "sinon": "^11.1.1", @@ -17,6 +16,7 @@ "typescript": "^4.3.5" }, "dependencies": { + "fast-check": "^2.17.0", "tslib": "^2.3.0" } } diff --git a/src/index.ts b/src/index.ts index f571611..37167c7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,7 @@ import { Arbitrary, check, property } from 'fast-check'; -export type TestDone = () => Promise; -export type Test = (this: Mocha.Context, args: T) => Promise; -export type WrappedTest = (this: Mocha.Context) => Promise; - -export type WrappedCheck = (t: T) => boolean; -export type WrappedIt = (name: string, test: WrappedCheck) => void; +export type Check = (this: Mocha.Context, t: T) => boolean; +export type WrappedIt = (name: string, check: Check) => void; export type Suite = (it: WrappedIt) => void; export function over(name: string, strategy: Arbitrary, suite: Suite): void {