From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/ava/index.js.flow | 49 ++++++------------------------------------ 1 file changed, 6 insertions(+), 43 deletions(-) (limited to 'node_modules/ava/index.js.flow') diff --git a/node_modules/ava/index.js.flow b/node_modules/ava/index.js.flow index 38670fc39..b86e22c65 100644 --- a/node_modules/ava/index.js.flow +++ b/node_modules/ava/index.js.flow @@ -58,8 +58,8 @@ type AssertContext = { // Assert that function throws an error or promise rejects. // @param error Can be a constructor, regex, error message or validation function. throws: { - (value: PromiseLike, error?: ErrorValidator, message?: string): Promise; - (value: () => mixed, error?: ErrorValidator, message?: string): Error; + (value: PromiseLike, error?: ErrorValidator, message?: string): Promise; + (value: () => mixed, error?: ErrorValidator, message?: string): any; }; // Assert that function doesn't throw an error or promise resolves. notThrows: { @@ -84,9 +84,8 @@ type TestContext = AssertContext & { plan(count: number): void; skip: AssertContext; }; -type CallbackTestContext = TestContext & { end(): void; }; -type ContextualTestContext = TestContext & { context: any; }; -type ContextualCallbackTestContext = CallbackTestContext & { context: any; }; +type ContextualTestContext = TestContext & { context: any; }; +type ContextualCallbackTestContext = TestContext & { context: any; end(): void; }; /** * Test Implementations @@ -101,8 +100,6 @@ type TestImplementation = | TestFunction | Array>; -type Test = TestImplementation; -type CallbackTest = TestImplementation; type ContextualTest = TestImplementation; type ContextualCallbackTest = TestImplementation; @@ -111,40 +108,6 @@ type ContextualCallbackTest = TestImplementation