Skip to content

Commit ced6d87

Browse files
zs-zsnovemberborn
authored andcommitted
Remove dead Flow types
1 parent 4cc3403 commit ced6d87

File tree

1 file changed

+2
-39
lines changed

1 file changed

+2
-39
lines changed

index.js.flow

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ type TestContext = AssertContext & {
8484
plan(count: number): void;
8585
skip: AssertContext;
8686
};
87-
type CallbackTestContext = TestContext & { end(): void; };
88-
type ContextualTestContext = TestContext & { context: any; };
89-
type ContextualCallbackTestContext = CallbackTestContext & { context: any; };
87+
type ContextualTestContext = TestContext & { context: any; };
88+
type ContextualCallbackTestContext = TestContext & { context: any; end(): void; };
9089

9190
/**
9291
* Test Implementations
@@ -101,8 +100,6 @@ type TestImplementation<T, R> =
101100
| TestFunction<T, R>
102101
| Array<TestFunction<T, R>>;
103102

104-
type Test = TestImplementation<TestContext, SpecialReturnTypes | void>;
105-
type CallbackTest = TestImplementation<CallbackTestContext, void>;
106103
type ContextualTest = TestImplementation<ContextualTestContext, SpecialReturnTypes | void>;
107104
type ContextualCallbackTest = TestImplementation<ContextualCallbackTestContext, void>;
108105

@@ -111,40 +108,6 @@ type ContextualCallbackTest = TestImplementation<ContextualCallbackTestContext,
111108
* Method Types
112109
*/
113110

114-
type TestMethod = {
115-
( implementation: Test): void;
116-
(name: string, implementation: Test): void;
117-
118-
serial : TestMethod;
119-
before : TestMethod;
120-
after : TestMethod;
121-
skip : TestMethod;
122-
todo : TestMethod;
123-
failing : TestMethod;
124-
only : TestMethod;
125-
beforeEach : TestMethod;
126-
afterEach : TestMethod;
127-
cb : CallbackTestMethod;
128-
always : TestMethod;
129-
};
130-
131-
type CallbackTestMethod = {
132-
( implementation: CallbackTest): void;
133-
(name: string, implementation: CallbackTest): void;
134-
135-
serial : CallbackTestMethod;
136-
before : CallbackTestMethod;
137-
after : CallbackTestMethod;
138-
skip : CallbackTestMethod;
139-
todo : CallbackTestMethod;
140-
failing : CallbackTestMethod;
141-
only : CallbackTestMethod;
142-
beforeEach : CallbackTestMethod;
143-
afterEach : CallbackTestMethod;
144-
cb : CallbackTestMethod;
145-
always : CallbackTestMethod;
146-
};
147-
148111
type ContextualTestMethod = {
149112
( implementation: ContextualTest): void;
150113
(name: string, implementation: ContextualTest): void;

0 commit comments

Comments
 (0)