mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
🤖 Merge PR #46892 [pubnub]: fix pagination types on channel members by @elviswolcott
* add objects listener * depreciate objects v1 methods * cleanup callback types * add type definitions for objects v2 * update deprecation message * remove todo (I think I got the answer) * fix lint errors * update version * add tests and fix a few things * fix lint errors * more specific custom type * type custom objects * fix memberships responses * better types for objects events * add custom to memberships * add custom to objects event * use custom type * fix merge error * update test for listener * fix swapped type parameters * swap in for mohit * fix: fix types for pagination
This commit is contained in:
parent
6fe14b2e95
commit
1fb31451d1
6
types/pubnub/index.d.ts
vendored
6
types/pubnub/index.d.ts
vendored
@ -7,7 +7,7 @@
|
||||
// danduh <https://github.com/danduh>,
|
||||
// ChristianBoehlke <https://github.com/ChristianBoehlke>,
|
||||
// divyun <https://github.com/divyun>
|
||||
// elviswolcot <https://github.com/elviswolcott>
|
||||
// elviswolcott <https://github.com/elviswolcott>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// @see https://www.pubnub.com/docs/web-javascript/api-reference-configuration
|
||||
// TypeScript Version: 3.5
|
||||
@ -1316,7 +1316,7 @@ declare namespace Pubnub {
|
||||
limit?: number;
|
||||
page?: {
|
||||
next?: string;
|
||||
prev: string;
|
||||
prev?: string;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1332,7 +1332,7 @@ declare namespace Pubnub {
|
||||
limit?: number;
|
||||
page?: {
|
||||
next?: string;
|
||||
prev: string;
|
||||
prev?: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -850,6 +850,10 @@ pubnub.objects.getChannelMembers({
|
||||
pubnub.objects.setChannelMembers({
|
||||
channel: 'myChannel',
|
||||
uuids: ['uuid-1', 'uuid-2'],
|
||||
page: {
|
||||
next: "abc",
|
||||
prev: "def"
|
||||
}
|
||||
});
|
||||
|
||||
pubnub.objects.removeChannelMembers({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user