Skip to content

Commit d0b1775

Browse files
authored
Update shared to v244 (#527)
* Eslint; fix one import; update shared to v244 * eslint
1 parent 2c162ac commit d0b1775

72 files changed

Lines changed: 1365 additions & 391 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 1194 additions & 249 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"devDependencies": {
4848
"@mdi/js": "^7.2.96",
4949
"@mdi/react": "^1.6.1",
50-
"@nordicsemiconductor/pc-nrfconnect-shared": "^241.0.0",
50+
"@nordicsemiconductor/pc-nrfconnect-shared": "^244.0.0",
5151
"@types/redux-mock-store": "^1.0.2",
5252
"chart.js": "^4.1.2",
5353
"check-disk-space": "^2.1.0",

resources/docs/dashboardFields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
55
*/
66

7-
import { recommendedAT } from '../../src/features/tracingEvents/at/recommeneded';
7+
import { type recommendedAT } from '../../src/features/tracingEvents/at/recommeneded';
88

99
export type Documentation = {
1010
[key: string]: {

src/app/DeviceSelector.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
import { connect } from 'react-redux';
88
import {
9-
AppDispatch,
10-
AppThunk,
11-
Device,
9+
type AppDispatch,
10+
type AppThunk,
11+
type Device,
1212
DeviceSelector,
13-
DeviceSelectorProps,
13+
type DeviceSelectorProps,
1414
logger,
1515
} from '@nordicsemiconductor/pc-nrfconnect-shared';
1616
import type {
@@ -35,7 +35,7 @@ import {
3535
} from '../features/tracing/traceSlice';
3636
import { clearATQueue } from '../features/tracingEvents/at/sendCommand';
3737
import { resetDashboardState } from '../features/tracingEvents/dashboardSlice';
38-
import { RootState } from './appReducer';
38+
import { type RootState } from './appReducer';
3939
import { getSerialPort as getPersistedSerialPort } from './store';
4040

4141
const deviceListing: DeviceTraits = {

src/app/appReducer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
55
*/
66

7-
import { NrfConnectState } from '@nordicsemiconductor/pc-nrfconnect-shared';
7+
import { type NrfConnectState } from '@nordicsemiconductor/pc-nrfconnect-shared';
88
import { combineReducers } from 'redux';
99

1010
import chartSlice from '../features/dashboard/Chart/chartSlice';

src/app/store.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import {
1010
} from '@nordicsemiconductor/pc-nrfconnect-shared';
1111
import path from 'path';
1212

13-
import { ALL_TRACE_FORMATS, TraceFormat } from '../features/tracing/formats';
13+
import {
14+
ALL_TRACE_FORMATS,
15+
type TraceFormat,
16+
} from '../features/tracing/formats';
1417

1518
interface StoreSchema {
1619
dbFilePath: string | undefined;

src/common/fileUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { dialog, getCurrentWindow, shell } from '@electron/remote';
88
import { getAppDataDir } from '@nordicsemiconductor/pc-nrfconnect-shared';
9-
import { FileFilter } from 'electron';
9+
import { type FileFilter } from 'electron';
1010
import path from 'path';
1111

1212
import { autoDetectDbRootFolder } from '../app/store';

src/common/powerSavingMode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
55
*/
66

7-
import { PowerSavingModeValues } from '../features/tracingEvents/types';
7+
import { type PowerSavingModeValues } from '../features/tracingEvents/types';
88
import {
99
ACTIVE_TIMER_BASE_VALUES,
1010
parsePowerSavingMode,

src/common/powerSavingMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { logger } from '@nordicsemiconductor/pc-nrfconnect-shared';
99
import {
1010
isValidBitmask,
1111
PowerSavingModeDeactivatedTimer,
12-
PowerSavingModeValues,
12+
type PowerSavingModeValues,
1313
} from '../features/tracingEvents/types';
1414

1515
export enum TAU_TYPES {

src/common/testUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import nrfml from '@nordicsemiconductor/nrf-monitor-lib-js';
88
// eslint-disable-next-line import/no-unresolved
9-
import { Configuration } from '@nordicsemiconductor/nrf-monitor-lib-js/config/configuration';
9+
import { type Configuration } from '@nordicsemiconductor/nrf-monitor-lib-js/config/configuration';
1010
import {
11-
AppDispatch,
11+
type AppDispatch,
1212
currentPane,
1313
logger,
1414
} from '@nordicsemiconductor/pc-nrfconnect-shared';

0 commit comments

Comments
 (0)