Skip to content

Commit

Permalink
Merge b9c21e2 into 3b3caf3
Browse files Browse the repository at this point in the history
  • Loading branch information
xcatliu committed Aug 2, 2019
2 parents 3b3caf3 + b9c21e2 commit 8379ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function getDispatch<M extends Models>(): RematchDispatch<M>
export function createModel<S = any>(
model: ModelConfig<S>,
): ModelConfig<S>
export function createModel<S = any, M extends ModelConfig<S> = ModelConfig>(
export function createModel<S = any, M extends ModelConfig<S> = ModelConfig<S>>(
model: M,
): M

Expand Down Expand Up @@ -153,7 +153,7 @@ export interface ModelConfig<S = any, SS = S> {
state: S,
baseReducer?: (state: SS, action: Action) => SS,
reducers?: ModelReducers<S>,
effects?: ModelEffects<any> | ((dispatch: RematchDispatch) => ModelEffects<any>),
effects?: ModelEffects<S> | ((dispatch: RematchDispatch) => ModelEffects<S>),
}

export interface PluginFactory extends Plugin {
Expand Down

0 comments on commit 8379ab3

Please sign in to comment.