Skip to content

Commit 3c8703a

Browse files
authored
Merge pull request #324 from effect-native/feat/ts-explicit-reexports-embedded-alias
fix(ts): expose open/openSync/openRemote for NodeNext
2 parents ade0174 + adb8369 commit 3c8703a

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
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: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
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';
5-
export * from './types';
16+
export type {
17+
Scalar,
18+
QueryResult,
19+
ColumnMetadata,
20+
SQLBatchTuple,
21+
UpdateHookOperation,
22+
BatchQueryResult,
23+
FileLoadResult,
24+
Transaction,
25+
_PendingTransaction,
26+
PreparedStatement,
27+
_InternalDB,
28+
DB,
29+
DBParams,
30+
OPSQLiteProxy,
31+
} from './types';
632

733
export const {
834
IOS_DOCUMENT_PATH,

0 commit comments

Comments
 (0)