diff --git a/README.md b/README.md index 87671b79..dbfbca46 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ the various Link options and the | `onExit` | `(error: null \| PlaidLinkError, metadata: PlaidLinkOnExitMetadata) => void` | | `onEvent` | `(eventName: PlaidLinkStableEvent \| string, metadata: PlaidLinkOnEventMetadata) => void` | | `onLoad` | `() => void` | -| `receivedRedirectUri` | `string \| null \| undefined` | +| `receivedRedirectUri` | `string \| undefined` | | `cspNonce` | `string \| undefined` | #### Content Security Policy nonce diff --git a/src/types/index.ts b/src/types/index.ts index 9a401136..0ad2eff3 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -89,8 +89,8 @@ export type PlaidLinkOnEvent = ( export type PlaidLinkOnLoad = () => void; export interface CommonPlaidLinkOptions { - // A function that is called when a user has successfully connecter an Item. - // The function should expect two arguments, the public_key and a metadata object + // A function that is called when a user has successfully connected an Item. + // The function should expect two arguments, the public_token and a metadata object onSuccess: T; // A callback that is called when a user has specifically exited Link flow onExit?: PlaidLinkOnExit;