Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#67568 pn/update-AppContext-param by @mohit…
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Dec 1, 2023
1 parent a7253eb commit e7b275f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions types/pubnub/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ declare namespace Pubnub {
timetoken: string;
message: any;
publisher: string;
error?: string | undefined;

/**
* deprecated:
Expand Down Expand Up @@ -596,6 +597,7 @@ declare namespace Pubnub {
timetoken: string | number;
messageType?: string | number | undefined;
uuid?: string | undefined;
error?: string | undefined;
meta?: {
[key: string]: any;
} | undefined;
Expand Down Expand Up @@ -1149,6 +1151,9 @@ declare namespace Pubnub {
customFields?: boolean | undefined;
UUIDFields?: boolean | undefined;
customUUIDFields?: boolean | undefined;
statusField?: boolean | undefined;
UUIDStatusField?: boolean | undefined;
UUIDTypeField?: boolean | undefined;
} | undefined;
filter?: string | undefined;
sort?: object | undefined;
Expand All @@ -1165,6 +1170,9 @@ declare namespace Pubnub {
customFields?: boolean | undefined;
channelFields?: boolean | undefined;
customChannelFields?: boolean | undefined;
statusField?: boolean | undefined;
channelStatusField?: boolean | undefined;
channelTypeField?: boolean | undefined;
} | undefined;
filter?: string | undefined;
sort?: object | undefined;
Expand Down
2 changes: 1 addition & 1 deletion types/pubnub/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/pubnub",
"version": "7.3.9999",
"version": "7.4.9999",
"projects": [
"https://github.com/pubnub/javascript"
],
Expand Down
10 changes: 10 additions & 0 deletions types/pubnub/pubnub-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,11 @@ pubnub.objects.getMemberships({
uuid: "myUuid",
include: {
channelFields: true,
statusField: true,
customFields: true,
customChannelFields: true,
channelStatusField: true,
channelTypeField: true,
},
});

Expand Down Expand Up @@ -625,6 +630,11 @@ pubnub.objects.getChannelMembers({
channel: "myChannel",
include: {
UUIDFields: true,
statusField: true,
customUUIDFields: true,
customFields: true,
UUIDStatusField: true,
UUIDTypeField: true,
},
});

Expand Down

0 comments on commit e7b275f

Please sign in to comment.