diff --git a/src/functions.ts b/src/functions.ts index 86176d5f..75d22b49 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -449,10 +449,15 @@ export const isLibsql = (): boolean => { return OPSQLite.isLibsql(); }; -export const isIOSEmbeeded = (): boolean => { +export const isIOSEmbedded = (): boolean => { if (Platform.OS !== 'ios') { return false; } return OPSQLite.isIOSEmbedded(); }; + +/** + * @deprecated Use `isIOSEmbedded` instead. This alias will be removed in a future release. + */ +export const isIOSEmbeeded = isIOSEmbedded; diff --git a/src/index.ts b/src/index.ts index 5667d231..3243dcce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,34 @@ import { NativeModules } from 'react-native'; -export * from './functions'; +export { + OPSQLite, + open, + openRemote, + openSync, + moveAssetsDatabase, + getDylibPath, + isSQLCipher, + isLibsql, + isIOSEmbedded, + isIOSEmbeeded, +} from './functions'; export { Storage } from './Storage'; -export * from './types'; +export type { + Scalar, + QueryResult, + ColumnMetadata, + SQLBatchTuple, + UpdateHookOperation, + BatchQueryResult, + FileLoadResult, + Transaction, + _PendingTransaction, + PreparedStatement, + _InternalDB, + DB, + DBParams, + OPSQLiteProxy, +} from './types'; export const { IOS_DOCUMENT_PATH,