Skip to content

Commit 8e56032

Browse files
BafSseantcoyote
authored andcommitted
Remove .d.ts suffix for imports (reduxjs#2222)
1 parent 79173e0 commit 8e56032

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

test/typescript/actionCreators.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
ActionCreator, Action, Dispatch,
33
bindActionCreators, ActionCreatorsMapObject
4-
} from "../../index.d.ts";
4+
} from "../../index";
55

66

77
interface AddTodoAction extends Action {

test/typescript/actions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Action as ReduxAction} from "../../index.d.ts";
1+
import {Action as ReduxAction} from "../../index";
22

33

44
namespace FSA {

test/typescript/compose.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {compose} from "../../index.d.ts";
1+
import {compose} from "../../index";
22

33
// copied from DefinitelyTyped/compose-function
44

test/typescript/dispatch.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import {Dispatch, Action} from "../../index.d.ts";
1+
import {Dispatch, Action} from "../../index";
22

33

44
declare const dispatch: Dispatch<any>;
55

66
const dispatchResult: Action = dispatch({type: 'TYPE'});
77

88
// thunk
9-
declare module "../../index.d.ts" {
9+
declare module "../../index" {
1010
export interface Dispatch<S> {
1111
<R>(asyncAction: (dispatch: Dispatch<S>, getState: () => S) => R): R;
1212
}

test/typescript/middleware.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
22
Middleware, MiddlewareAPI,
33
applyMiddleware, createStore, Dispatch, Reducer, Action
4-
} from "../../index.d.ts";
4+
} from "../../index";
55

6-
declare module "../../index.d.ts" {
6+
declare module "../../index" {
77
export interface Dispatch<S> {
88
<R>(asyncAction: (dispatch: Dispatch<S>, getState: () => S) => R): R;
99
}
@@ -37,7 +37,6 @@ const loggerMiddleware: Middleware =
3737
}
3838

3939

40-
4140
type State = {
4241
todos: string[];
4342
}

test/typescript/reducers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
Reducer, Action, combineReducers,
33
ReducersMapObject
4-
} from "../../index.d.ts";
4+
} from "../../index";
55

66

77
type TodosState = string[];

test/typescript/store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
Store, createStore, Reducer, Action, StoreEnhancer, GenericStoreEnhancer,
33
StoreCreator, StoreEnhancerStoreCreator, Unsubscribe
4-
} from "../../index.d.ts";
4+
} from "../../index";
55

66

77
type State = {

0 commit comments

Comments
 (0)