Skip to content

Commit 60eaa2f

Browse files
committed
fix imports order
- keep away env.ts from tested wrapper api's Signed-off-by: 🕷️ <[email protected]>
1 parent 91039e9 commit 60eaa2f

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

src/api/storage/storage.local.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {
1111
TSetTimerHistory,
1212
} from '../../wrapper/TimerWrapper.ts';
1313
import { CONFIG_VERSION, local } from './storage.ts';
14+
import { EWrapperCallstackType } from '../../wrapper/shared/TraceUtil.ts';
1415

1516
type TPanelKey =
1617
| 'callsSummary'
@@ -93,10 +94,6 @@ export const DEFAULT_PANELS: TPanel[] = [
9394
},
9495
];
9596

96-
export enum EWrapperCallstackType {
97-
FULL,
98-
SHORT,
99-
}
10097
export enum ESortOrder {
10198
ASCENDING,
10299
DESCENDING,

src/state/config.state.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { EMsg, portPost } from '../api/communication.ts';
22
import {
33
DEFAULT_CONFIG,
4-
EWrapperCallstackType,
54
loadLocalStorage,
65
saveLocalStorage,
76
type TConfig,
87
} from '../api/storage/storage.local.ts';
8+
import { EWrapperCallstackType } from '../wrapper/shared/TraceUtil.ts';
99

1010
let config: TConfig = $state(DEFAULT_CONFIG);
1111

src/view/menu/TogglePanels.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { EWrapperCallstackType } from '../../api/storage/storage.local.ts';
2+
import { EWrapperCallstackType } from '../../wrapper/shared/TraceUtil.ts';
33
import { EMsg, runtimeListen } from '../../api/communication.ts';
44
import Alert from '../shared/Alert.svelte';
55
import {

src/wrapper/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { callableOnce } from '../api/time.ts';
22
import { EvalWrapper, type TEvalHistory } from './EvalWrapper.ts';
33
import {
4-
EWrapperCallstackType,
54
panelsArray2Map,
65
type TConfig,
76
type TPanelMap,
@@ -35,6 +34,7 @@ import {
3534
type ISchedulerTelemetry,
3635
SchedulerWrapper,
3736
} from './SchedulerWrapper.ts';
37+
import type { EWrapperCallstackType } from './shared/TraceUtil.ts';
3838

3939
export type TTelemetry = {
4040
media: TMediaTelemetry;

src/wrapper/shared/TraceUtil.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { hashString } from '../../api/hash.ts';
2-
import { EWrapperCallstackType } from '../../api/storage/storage.local.ts';
2+
3+
export enum EWrapperCallstackType {
4+
FULL,
5+
SHORT,
6+
}
37

48
export type TTrace = {
59
name: string | 0;

tests/TraceUtil_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, test } from '@std/testing/bdd';
22
import { expect } from '@std/expect';
3-
import { EWrapperCallstackType } from '../src/api/storage/storage.local.ts';
43
import {
4+
EWrapperCallstackType,
55
TAG_INVALID_CALLSTACK_LINK,
66
TraceUtil,
77
} from '../src/wrapper/shared/TraceUtil.ts';

0 commit comments

Comments
 (0)