Skip to content

Commit

Permalink
Adding onGrant callback typing for RSA (#790)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Wang <[email protected]>
  • Loading branch information
andywang219 and Andy Wang authored Oct 17, 2023
1 parent 1fd42e1 commit 5f9027d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amazon-connect-streams",
"version": "2.6.6",
"version": "2.6.7",
"description": "Amazon Connect Streams Library",
"engines": {
"node": ">=12.0.0"
Expand Down
2 changes: 1 addition & 1 deletion release/connect-streams-dr-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/connect-streams-dr.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/connect-streams-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/connect-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -26297,7 +26297,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;// AWS SDK for JavaScript v2.1377.0

connect.core = {};
connect.core.initialized = false;
connect.version = "2.6.6";
connect.version = "2.6.7";
connect.outerContextStreamsVersion = null;
connect.DEFAULT_BATCH_SIZE = 500;

Expand Down
14 changes: 8 additions & 6 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,21 @@ declare namespace connect {
*/
function hitch<T extends (...args: any[]) => any>(scope: object, method: T): T;

type StorageAcccessCallbackData = {
type StorageAccessCallbackData = {
hasAccess?: boolean;
[key: string]: any;
}
type StorageAccessCallback = (option: StorageAccessCallbackData) => void;

interface StorageAcccessCallbacks {
onInit(options:StorageAcccessCallbackData): Function
onRequest(options:StorageAcccessCallbackData): Function
onDeny(options:StorageAcccessCallbackData): Function
interface StorageAccessCallbacks {
onInit?: StorageAccessCallback
onRequest?: StorageAccessCallback
onDeny?: StorageAccessCallback
onGrant?: StorageAccessCallback
}

interface StorageAccess {
onRequest(options: StorageAcccessCallbacks): {unsubscribe: Function}
onRequest(options: StorageAccessCallbacks): {unsubscribe: Function}
}

const storageAccess: StorageAccess;
Expand Down

0 comments on commit 5f9027d

Please sign in to comment.