From 99d722f431e275386e213306d73d743f9a17f197 Mon Sep 17 00:00:00 2001 From: Charmtiger Date: Mon, 29 Jul 2019 22:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dts+observer+=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E4=BB=B6=20=E7=BB=84=E4=BB=B6props=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-mobx/types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro-mobx/types/index.d.ts b/packages/taro-mobx/types/index.d.ts index dc544859fd52..938bc1698b8a 100644 --- a/packages/taro-mobx/types/index.d.ts +++ b/packages/taro-mobx/types/index.d.ts @@ -13,7 +13,7 @@ export function useLocalStore, TSource extend ): TStore; export function useAsObservableSource(current: TSource): TSource; -export function observer(component); +export function observer

(component: Taro.FunctionComponent

): Taro.FunctionComponent

; export function inject(...stores: string[]); export function inject(fn: (stores: IValueMap, nextProps: IValueMap) => IValueMap); @@ -27,4 +27,4 @@ export const PropTypes: { arrayOrObservableArray: React.Requireable arrayOrObservableArrayOf: (type: React.Validator) => React.Requireable objectOrObservableObject: React.Requireable -} \ No newline at end of file +}