diff --git a/_typos.toml b/_typos.toml index 7a6ad1cf..a13aff52 100644 --- a/_typos.toml +++ b/_typos.toml @@ -1,10 +1,16 @@ [default] -extend-ignore-re = [ - "VALHALLA_EXTENDED_OSRM_RESPONSE.*", -] +extend-ignore-re = ["VALHALLA_EXTENDED_OSRM_RESPONSE.*"] [default.extend-words] rememberable = "rememberable" [files] -extend-exclude = ["**/build/*", "*.pbxproj", "**/dist/*", "guide/**/*.js", "**/fixtures/*"] +extend-exclude = [ + "**/build/*", + "*.pbxproj", + "**/dist/*", + "guide/**/*.js", + "**/fixtures/*", + "react-native/cpp/generated/*", + "react-native/src/generated/*", +] diff --git a/react-native/src/core/FerrostarCore.ts b/react-native/src/core/FerrostarCore.ts index f8c924ff..38c840b9 100644 --- a/react-native/src/core/FerrostarCore.ts +++ b/react-native/src/core/FerrostarCore.ts @@ -121,7 +121,7 @@ export class FerrostarCore implements LocationUpdateListener { _navigationController?: NavigationController; _state: NavigationState = NavigationState.instance(); _routeRequestInFlight: boolean = false; - _lastAutomaticeRecalculation?: number; + _lastAutomaticRecalculation?: number; _lastLocation?: UserLocation; _listeners: Map void> = new Map(); @@ -295,8 +295,8 @@ export class FerrostarCore implements LocationUpdateListener { if (RouteDeviation.OffRoute.instanceOf(newState.inner.deviation)) { // Check that the last automatic recalculation wasn't too recent. // We have to do some weird thing here with hrTime since JavaScript doesn't have a nice nanoseoncds method. - const isGreaterThanMinimumTime = this._lastAutomaticeRecalculation - ? getNanoTime() - this._lastAutomaticeRecalculation > + const isGreaterThanMinimumTime = this._lastAutomaticRecalculation + ? getNanoTime() - this._lastAutomaticRecalculation > this.minimumTimeBeforeRecalculaton : true; @@ -348,7 +348,7 @@ export class FerrostarCore implements LocationUpdateListener { } catch (e) { console.log(`Failed to recalculate route: ${e}`); } finally { - this._lastAutomaticeRecalculation = getNanoTime(); + this._lastAutomaticRecalculation = getNanoTime(); this.isCalculatingNewRoute = false; } break; diff --git a/react-native/src/index.tsx b/react-native/src/index.tsx index 2822dedf..0cc2dfff 100644 --- a/react-native/src/index.tsx +++ b/react-native/src/index.tsx @@ -8,7 +8,7 @@ installer.installRustCrate(); export * from './generated/ferrostar'; // Now import the bindings so we can: -// - intialize them +// - initialize them // - export them as namespaced objects as the default export. import * as ferrostar from './generated/ferrostar';