Skip to content

Commit

Permalink
Entry class TD return type update
Browse files Browse the repository at this point in the history
  • Loading branch information
uttamukkoji committed Dec 5, 2020
1 parent 70e6aa6 commit 52f5aad
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,33 +121,33 @@ export class Entry {
cachePolicy: number;
queryCachePolicy: number;

only(field_uid: string): Entry;
only(field_uids: string[]): Entry;
only(reference_field_uid:string, field_uid: string): Entry;
only(reference_field_uid:string, field_uids: string[]): Entry;

except(field_uid: string): Entry;
except(field_uids: string[]): Entry;
except(reference_field_uid:string, field_uid: string): Entry;
except(reference_field_uid:string, field_uids: string[]): Entry;

setCacheProvider(provider: object): Entry;
setCachePolicy(policy: number): Entry;
includeReference(val: string[]): Entry;
includeReference(...val: string[]): Entry;
language(language_code: string): Entry;
addQuery(key: string, value: string): Entry;
includeFallback(): Entry;
only(field_uid: string): this;
only(field_uids: string[]): this;
only(reference_field_uid:string, field_uid: string): this;
only(reference_field_uid:string, field_uids: string[]): this;

except(field_uid: string): this;
except(field_uids: string[]): this;
except(reference_field_uid:string, field_uid: string): this;
except(reference_field_uid:string, field_uids: string[]): this;

setCacheProvider(provider: object): this;
setCachePolicy(policy: number): this;
includeReference(val: string[]): this;
includeReference(...val: string[]): this;
language(language_code: string): this;
addQuery(key: string, value: string): this;
includeFallback(): this;

/**
* @deprecated since verion 3.3.0
*/
includeSchema(): Entry;
includeReferenceContentTypeUID(): Entry;
includeContentType(): Entry;
includeOwner(): Entry;
toJSON(): Entry;
addParam(key: string, value: any): Entry;
includeSchema(): this;
includeReferenceContentTypeUID(): this;
includeContentType(): this;
includeOwner(): this;
toJSON(): this;
addParam(key: string, value: any): this;
fetch(fetchOptions?: object): Promise<any>;
}

Expand Down

0 comments on commit 52f5aad

Please sign in to comment.