Content-Length: 322265 | pFad | http://github.com/leancloud/javascript-sdk/commit/abb21550030add915c0ef928f1fce5ff366c0cd8

84 fix(Status): type definition (#675) · leancloud/javascript-sdk@abb2155 · GitHub
Skip to content

Commit abb2155

Browse files
authored
fix(Status): type definition (#675)
1 parent ee9cda4 commit abb2155

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

storage.d.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ export class Events {
479479
unbind(eventName?: string, callback?: Function, context?: any): Events;
480480
}
481481

482-
declare type Queriable = Object | File | Status;
482+
declare type Queriable = Object | File;
483483

484484
declare class BaseQuery<T extends Queriable> extends BaseObject {
485485
className: string;
@@ -1496,6 +1496,10 @@ export namespace Cloud {
14961496
}
14971497

14981498
export class Status {
1499+
id?: string;
1500+
createdAt?: Date;
1501+
updatedAt?: Date;
1502+
messageId?: number;
14991503
inboxType: string;
15001504
constructor(imageUrl?: string | null, message?: string | null);
15011505
constructor(data: Record<string, any>);
@@ -1519,15 +1523,16 @@ export class Status {
15191523
options?: AuthOptions
15201524
): Promise<any>;
15211525
static statusQuery(source?: User): Query<Object>;
1522-
static inboxQuery(owner?: User, inboxType?: string): InboxQuery<Status>;
1526+
static inboxQuery(owner?: User, inboxType?: string): InboxQuery;
15231527
get(key: string): any;
15241528
set(key: string, value: any): this;
15251529
destroy(options?: AuthOptions): Promise<any>;
15261530
toObject(): Object;
15271531
send(options?: AuthOptions): Promise<this>;
15281532
}
15291533

1530-
export class InboxQuery<T extends Queriable> extends Query<T> {
1534+
// @ts-ignore
1535+
export class InboxQuery extends Query<Status> {
15311536
sinceId(id: number): this;
15321537
maxId(id: number): this;
15331538
owner(owner: User): this;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/leancloud/javascript-sdk/commit/abb21550030add915c0ef928f1fce5ff366c0cd8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy