Browse Source

Fix errors, mute deprecation warning

Malte Grimm 3 years ago
parent
commit
9575411303
  1. 2
      src/core/flashing/Flasher.ts
  2. 2
      src/core/stores/appStore.ts
  3. 3
      tsconfig.json

2
src/core/flashing/Flasher.ts

@ -10,7 +10,7 @@ import type {
} from '@meshtastic/meshtasticjs'; } from '@meshtastic/meshtasticjs';
import { EspLoader } from '@toit/esptool.js'; import { EspLoader } from '@toit/esptool.js';
import { ConfigPreset } from '../stores/appStore'; import type { ConfigPreset } from '../stores/appStore';
import type { Device } from '../stores/deviceStore'; import type { Device } from '../stores/deviceStore';
type DeviceFlashingState = "doNotFlash" | "doFlash" | "idle" | "connecting" | "erasing" | "flashing" | "config" | "done" | "aborted" | "failed"; type DeviceFlashingState = "doNotFlash" | "doFlash" | "idle" | "connecting" | "erasing" | "flashing" | "config" | "done" | "aborted" | "failed";

2
src/core/stores/appStore.ts

@ -1,7 +1,7 @@
import { produce } from 'immer'; import { produce } from 'immer';
import { create } from 'zustand'; import { create } from 'zustand';
import { FirmwareVersion } from '@app/components/Dashboard'; import type { FirmwareVersion } from '@app/components/Dashboard';
import { Protobuf } from '@meshtastic/meshtasticjs'; import { Protobuf } from '@meshtastic/meshtasticjs';
import type { OverallFlashingState } from '../flashing/Flasher'; import type { OverallFlashingState } from '../flashing/Flasher';

3
tsconfig.json

@ -1,6 +1,6 @@
{ {
"include": ["src", "types"], "include": ["src", "types"],
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"useDefineForClassFields": true, "useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"], "lib": ["DOM", "DOM.Iterable", "ESNext"],
@ -29,6 +29,7 @@
"strictNullChecks": true, "strictNullChecks": true,
"types": ["vite/client", "node"], "types": ["vite/client", "node"],
"importsNotUsedAsValues": "error", "importsNotUsedAsValues": "error",
"ignoreDeprecations": "5.0",
"strictPropertyInitialization": false, "strictPropertyInitialization": false,
"experimentalDecorators": true "experimentalDecorators": true
} }

Loading…
Cancel
Save