From 6a95c833c51a7b3af028cf3593ea24ec4f997721 Mon Sep 17 00:00:00 2001 From: JsLin Date: Wed, 4 Jan 2023 19:59:25 +0800 Subject: [PATCH] Update index.d.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Query 的set 方法支持 任意类型值,目前只支持string 类型 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index c365bee..29a058e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -8,7 +8,7 @@ export interface queryData { export class Query { new(params: string): void; get: (objectId: string) => BmobPromise; - set: (filedName: string, filedValue: string) => BmobPromise; + set: (filedName: string, filedValue: any) => BmobPromise; destroy: (objectId: string) => BmobPromise; save: (parmas?: object) => BmobPromise; find: () => BmobPromise;