From 295d9af34a8797abc08059ee9b797bcb5c01f4ea Mon Sep 17 00:00:00 2001 From: Ali Sheehan-Dare Date: Tue, 18 Dec 2018 21:04:14 +0000 Subject: [PATCH] fix: RouterModel.create() typings (closes #16) (#17) --- types.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.d.ts b/types.d.ts index ca03ece..96d1bb9 100644 --- a/types.d.ts +++ b/types.d.ts @@ -3,11 +3,11 @@ // Definitions by: Keyj1n https://github.com/Keyj1n import { History, Location, UnregisterCallback } from 'history'; -import { IModelType, ModelPropertiesDeclarationToProperties, IType, Instance } from 'mobx-state-tree'; +import { IModelType, ModelPropertiesDeclarationToProperties, IType, IOptionalIType, Instance } from 'mobx-state-tree'; declare namespace MstReactRouter { type Props = { - location: IType; + location: IOptionalIType>; action: string; }