Re-enabled strict ts types

This commit is contained in:
EthanShoeDev
2025-09-14 23:07:02 -04:00
parent c861cda4e5
commit 0cf2d06000
3 changed files with 12 additions and 14 deletions

View File

@@ -2,19 +2,16 @@
"extends": "expo/tsconfig.base", "extends": "expo/tsconfig.base",
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,
// https://github.com/jhugman/uniffi-bindgen-react-native/pull/198 // https://github.com/jhugman/uniffi-bindgen-react-native/pull/198
// https://github.com/microsoft/TypeScript/issues/41883#issuecomment-1758692340 // https://github.com/microsoft/TypeScript/issues/41883#issuecomment-1758692340
// "noUnusedLocals": true, // TODO: Get this merged
// "noUnusedParameters": true, // https://github.com/EthanShoeDev/uniffi-bindgen-react-native/tree/build-ts
"noUnusedLocals": false, "noUnusedLocals": true,
"noUnusedParameters": false, "noUnusedParameters": true,
"noImplicitOverride": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true, "noUncheckedIndexedAccess": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
// "noImplicitOverride": true, "noImplicitOverride": true,
"allowJs": true, "allowJs": true,
"strictNullChecks": true, "strictNullChecks": true,
"baseUrl": ".", "baseUrl": ".",

View File

@@ -129,6 +129,6 @@
"version": "0.54.3" "version": "0.54.3"
}, },
"dependencies": { "dependencies": {
"uniffi-bindgen-react-native": "0.29.3-1" "uniffi-bindgen-react-native": "github:EthanShoeDev/uniffi-bindgen-react-native#build-ts"
} }
} }

11
pnpm-lock.yaml generated
View File

@@ -234,8 +234,8 @@ importers:
packages/react-native-uniffi-russh: packages/react-native-uniffi-russh:
dependencies: dependencies:
uniffi-bindgen-react-native: uniffi-bindgen-react-native:
specifier: 0.29.3-1 specifier: github:EthanShoeDev/uniffi-bindgen-react-native#build-ts
version: 0.29.3-1(patch_hash=527b712c8fb029b29d9ac7caa72e593fa37a6dcebb63e15a56e21e75ffcb88ec) version: https://codeload.github.com/EthanShoeDev/uniffi-bindgen-react-native/tar.gz/5933e251a5464a8209e78fd679b72293ef4c68bb(patch_hash=527b712c8fb029b29d9ac7caa72e593fa37a6dcebb63e15a56e21e75ffcb88ec)
devDependencies: devDependencies:
'@eslint/compat': '@eslint/compat':
specifier: ^1.3.2 specifier: ^1.3.2
@@ -8075,8 +8075,9 @@ packages:
resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}
engines: {node: '>=18'} engines: {node: '>=18'}
uniffi-bindgen-react-native@0.29.3-1: uniffi-bindgen-react-native@https://codeload.github.com/EthanShoeDev/uniffi-bindgen-react-native/tar.gz/5933e251a5464a8209e78fd679b72293ef4c68bb:
resolution: {integrity: sha512-o6gXZsAh55yuvhwF2WSFdIHV4phyfWcCmg4DuyfJWJ7CvUz1UcIz2S4u9SmXAz1jsuqvu6Xc9hexrRBB0a5osg==} resolution: {tarball: https://codeload.github.com/EthanShoeDev/uniffi-bindgen-react-native/tar.gz/5933e251a5464a8209e78fd679b72293ef4c68bb}
version: 0.29.3-1
hasBin: true hasBin: true
unified@11.0.5: unified@11.0.5:
@@ -18212,7 +18213,7 @@ snapshots:
unicorn-magic@0.3.0: {} unicorn-magic@0.3.0: {}
uniffi-bindgen-react-native@0.29.3-1(patch_hash=527b712c8fb029b29d9ac7caa72e593fa37a6dcebb63e15a56e21e75ffcb88ec): {} uniffi-bindgen-react-native@https://codeload.github.com/EthanShoeDev/uniffi-bindgen-react-native/tar.gz/5933e251a5464a8209e78fd679b72293ef4c68bb(patch_hash=527b712c8fb029b29d9ac7caa72e593fa37a6dcebb63e15a56e21e75ffcb88ec): {}
unified@11.0.5: unified@11.0.5:
dependencies: dependencies: