Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.18.0
26.4.0
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@
"jsx": "react",
"lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noStrictGenericChecks": false,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
14 changes: 11 additions & 3 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"extends": "../config/tsconfig.json",
"include": ["src", "index.js", "../package"],
"include": [
"src",
"tests",
"index.js",
"../package",
"rn-harness.config.mjs"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"react-native-nitro-sqlite": ["../package/src"]
"*": ["./*"],
"react-native-nitro-sqlite": ["../package/src"],
"@/*": ["./src/*"],
"@tests/*": ["./tests/*"]
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"prettier": "^3.6.2",
"release-it": "^19.2.4",
"typeorm": "0.3.27",
"typescript": "^5.8.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.46.3"
},
"release-it": {
Expand Down
9 changes: 5 additions & 4 deletions package/src/specs/NitroSQLite.nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import type {
} from '../types'
import type { NitroSQLiteQueryResult } from './NitroSQLiteQueryResult.nitro'

export interface NitroSQLite extends HybridObject<{
ios: 'c++'
android: 'c++'
}> {
export interface NitroSQLite
extends HybridObject<{
ios: 'c++'
android: 'c++'
}> {
open(dbName: string, location?: string): void
close(dbName: string): void
drop(dbName: string, location?: string): void
Expand Down
9 changes: 5 additions & 4 deletions package/src/specs/NitroSQLiteQueryResult.nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import type { ColumnType, SQLiteValue } from '../types'
*
* @interface QueryResult
*/
export interface NitroSQLiteQueryResult extends HybridObject<{
ios: 'c++'
android: 'c++'
}> {
export interface NitroSQLiteQueryResult
extends HybridObject<{
ios: 'c++'
android: 'c++'
}> {
readonly rowsAffected: number
readonly insertId?: number

Expand Down
7 changes: 0 additions & 7 deletions tsconfig.json

This file was deleted.

Loading