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';
import { EspLoader } from '@toit/esptool.js';
import { ConfigPreset } from '../stores/appStore';
import type { ConfigPreset } from '../stores/appStore';
import type { Device } from '../stores/deviceStore';
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 { create } from 'zustand';
import { FirmwareVersion } from '@app/components/Dashboard';
import type { FirmwareVersion } from '@app/components/Dashboard';
import { Protobuf } from '@meshtastic/meshtasticjs';
import type { OverallFlashingState } from '../flashing/Flasher';

3
tsconfig.json

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

Loading…
Cancel
Save