Skip to content

Commit e7a3ef9

Browse files
committed
fix: TS and ESLint errors
1 parent f09395a commit e7a3ef9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

config/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"forceConsistentCasingInFileNames": true,
1919
"jsx": "react",
2020
"lib": ["ESNext"],
21-
"module": "NodeNext",
22-
"moduleResolution": "NodeNext",
21+
"module": "ESNext",
22+
"moduleResolution": "Node",
2323
"noEmit": false,
2424
"noFallthroughCasesInSwitch": true,
2525
"noImplicitReturns": true,

example/src/navigation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export const RootStack = createNativeStackNavigator({
1515
type RootStackParamList = StaticParamList<typeof RootStack>
1616

1717
declare global {
18+
// eslint-disable-next-line @typescript-eslint/no-namespace
1819
namespace ReactNavigation {
20+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
1921
interface RootParamList extends RootStackParamList {}
2022
}
2123
}

package/src/nullHandling.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ export function isSimpleNullHandlingEnabled() {
1414
}
1515

1616
export const NITRO_SQLITE_NULL: SQLiteNullValue = { isNitroSQLiteNull: true }
17-
export function isNitroSQLiteNull(value: any): value is SQLiteNullValue {
18-
if (typeof value === 'object' && 'isNitroSQLiteNull' in value) {
17+
export function isNitroSQLiteNull(value: unknown): value is SQLiteNullValue {
18+
if (
19+
value !== null &&
20+
typeof value === 'object' &&
21+
'isNitroSQLiteNull' in value
22+
) {
1923
return true
2024
}
2125
return false

0 commit comments

Comments
 (0)