Skip to content

Commit

Permalink
financekit
Browse files Browse the repository at this point in the history
  • Loading branch information
dtroupe-plaid committed May 24, 2024
1 parent ec11e2b commit a941205
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/PlaidLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ export const syncFinanceKit = (
() => {
completion()
},
(errorType: FinanceKitErrorType, message: string) => {
(error: FinanceKitError) => {
completion({
type: errorType,
message: message,
type: error.type,
message: error.message,
})
}
)
Expand Down
4 changes: 2 additions & 2 deletions src/fabric/NativePlaidLinkModuleiOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {TurboModuleRegistry, TurboModule} from 'react-native';
import {Int32} from 'react-native/Libraries/Types/CodegenTypes';
import {UnsafeObject} from './fabricUtils';
import {LinkSuccess, LinkExit, LinkError, FinanceKitErrorType} from '../Types';
import {LinkSuccess, LinkExit, LinkError, FinanceKitError} from '../Types';

export interface Spec extends TurboModule {
create(token: string, noLoadingState: boolean): void;
Expand All @@ -20,7 +20,7 @@ export interface Spec extends TurboModule {
token: string,
requestAuthorizationIfNeeded: boolean,
onSuccess: (success: void) => void,
onError: (error: FinanceKitErrorType, message: string) => void
onError: (error: FinanceKitError) => void
): void
}

Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {
openLink,
PlaidLink,
create,
open,
dismissLink,
usePlaidEmitter,
PlaidLink,
syncFinanceKit,
} from './PlaidLink';

export * from './Types';
Expand All @@ -18,6 +19,7 @@ export {
open,
dismissLink,
usePlaidEmitter,
syncFinanceKit
};

// Components
Expand Down

0 comments on commit a941205

Please sign in to comment.