Skip to content

Commit c7a9980

Browse files
committed
Changes per reviewer comments
1 parent 71de830 commit c7a9980

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

packages-exp/auth-compat-exp/index.rn.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
* just use index.ts
2323
*/
2424

25-
import { testFxn } from './src';
2625
import { AsyncStorage } from 'react-native';
27-
import { ReactNativePersistence } from '@firebase/auth-exp/src/core/persistence/react';
26+
import { ReactNativePersistence } from '@firebase/auth-exp/src/core/persistence/react_native';
2827

2928
const _reactNativeLocalPersistence = new ReactNativePersistence(AsyncStorage);
30-
31-
testFxn();

packages-exp/auth-compat-exp/react-native.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
declare module 'react-native' {
2929
interface ReactNativeAsyncStorage {
30-
setItem: (key: string, value: string) => Promise<void>
31-
getItem: (key: string) => Promise<string|null>
32-
removeItem: (key: string) => Promise<void>
30+
setItem(key: string, value: string): Promise<void>
31+
getItem(key: string): Promise<string | null>
32+
removeItem(key: string): Promise<void>
3333
}
3434
export const AsyncStorage: ReactNativeAsyncStorage;
3535
}

packages-exp/auth-exp/src/core/persistence/react.test.ts renamed to packages-exp/auth-exp/src/core/persistence/react_native.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { expect } from 'chai';
1919

2020
import { testUser } from '../../../test/mock_auth';
2121
import { PersistedBlob, PersistenceType } from './';
22-
import { ReactNativePersistence } from './react';
22+
import { ReactNativePersistence } from './react_native';
2323
import { ReactNativeAsyncStorage } from '@firebase/auth-types-exp';
2424

2525
/**

packages-exp/auth-types-exp/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
export interface ReactNativeAsyncStorage {
19-
setItem: (key: string, value: string) => Promise<void>
20-
getItem: (key: string) => Promise<string|null>
21-
removeItem: (key: string) => Promise<void>
19+
setItem(key: string, value: string): Promise<void>
20+
getItem(key: string): Promise<string | null>
21+
removeItem(key: string): Promise<void>
2222
}

0 commit comments

Comments
 (0)