Skip to content

Commit f1efc60

Browse files
feat(ts): explicit named re-exports; correct isIOSEmbedded with deprecated alias
1 parent 4089ec4 commit f1efc60

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/functions.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,15 @@ export const isLibsql = (): boolean => {
449449
return OPSQLite.isLibsql();
450450
};
451451

452-
export const isIOSEmbeeded = (): boolean => {
452+
export const isIOSEmbedded = (): boolean => {
453453
if (Platform.OS !== 'ios') {
454454
return false;
455455
}
456456

457457
return OPSQLite.isIOSEmbedded();
458458
};
459+
460+
/**
461+
* @deprecated Use `isIOSEmbedded` instead. This alias will be removed in a future release.
462+
*/
463+
export const isIOSEmbeeded = isIOSEmbedded;

src/index.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
import { NativeModules } from 'react-native';
22

3-
export * from './functions';
3+
export {
4+
OPSQLite,
5+
open,
6+
openRemote,
7+
openSync,
8+
moveAssetsDatabase,
9+
getDylibPath,
10+
isSQLCipher,
11+
isLibsql,
12+
isIOSEmbedded,
13+
isIOSEmbeeded,
14+
} from './functions';
415
export { Storage } from './Storage';
516
export * from './types';
617

0 commit comments

Comments
 (0)