Skip to content

Commit fe67997

Browse files
committed
Rename src/utils/flow.ts to types.ts.
1 parent 8840445 commit fe67997

File tree

136 files changed

+138
-135
lines changed

Some content is hidden

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

136 files changed

+138
-135
lines changed

src/actions/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66
ThunkAction,
77
IconWithClassName,
88
} from 'firefox-profiler/types';
9-
import { assertExhaustiveCheck } from 'firefox-profiler/utils/flow';
9+
import { assertExhaustiveCheck } from 'firefox-profiler/utils/types';
1010

1111
export function iconHasLoaded(iconWithClassName: {
1212
readonly icon: string;

src/actions/profile-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
assertExhaustiveCheck,
3939
getFirstItemFromSet,
4040
ensureExists,
41-
} from 'firefox-profiler/utils/flow';
41+
} from 'firefox-profiler/utils/types';
4242
import { sendAnalytics } from 'firefox-profiler/utils/analytics';
4343
import { objectShallowEquals } from 'firefox-profiler/utils/index';
4444
import {

src/actions/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
getCommittedRange,
2525
} from 'firefox-profiler/selectors/profile';
2626
import { viewProfile } from './receive-profile';
27-
import { ensureExists } from 'firefox-profiler/utils/flow';
27+
import { ensureExists } from 'firefox-profiler/utils/types';
2828
import { extractProfileTokenFromJwt } from 'firefox-profiler/utils/jwt';
2929
import { withHistoryReplaceStateSync } from 'firefox-profiler/app-logic/url-handling';
3030
import { persistUploadedProfileInformationToDb } from 'firefox-profiler/app-logic/uploaded-profiles-db';

src/actions/receive-profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import type {
8888
FuncToFuncsMap,
8989
SymbolicationStepInfo,
9090
} from '../profile-logic/symbolication';
91-
import { assertExhaustiveCheck } from '../utils/flow';
91+
import { assertExhaustiveCheck } from '../utils/types';
9292
import { bytesToBase64DataUrl } from 'firefox-profiler/utils/base64';
9393
import type {
9494
BrowserConnection,

src/app-logic/url-handling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
toValidTabSlug,
1818
coerce,
1919
ensureExists,
20-
} from 'firefox-profiler/utils/flow';
20+
} from 'firefox-profiler/utils/types';
2121
import {
2222
getThreadsKey,
2323
toValidCallTreeSummaryStrategy,

src/components/app/AppLocalizationProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
getLocaleDirection,
1515
} from 'firefox-profiler/app-logic/l10n';
1616

17-
import { ensureExists } from 'firefox-profiler/utils/flow';
17+
import { ensureExists } from 'firefox-profiler/utils/types';
1818
import type { PseudoStrategy } from 'firefox-profiler/types';
1919
import { L10nContext } from 'firefox-profiler/contexts/L10nContext';
2020
import type { L10nContextType } from 'firefox-profiler/contexts/L10nContext';

src/components/app/AppViewRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from 'firefox-profiler/selectors/url-state';
1919
import { ProfileLoaderAnimation } from './ProfileLoaderAnimation';
2020
import { UploadedRecordingsHome } from './UploadedRecordingsHome';
21-
import { assertExhaustiveCheck } from 'firefox-profiler/utils/flow';
21+
import { assertExhaustiveCheck } from 'firefox-profiler/utils/types';
2222

2323
import type { AppViewState, State, DataSource } from 'firefox-profiler/types';
2424

src/components/app/AssemblyCodeFetcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
import { fetchAssembly } from 'firefox-profiler/utils/fetch-assembly';
2121
import { RegularExternalCommunicationDelegate } from 'firefox-profiler/utils/query-api';
2222
import type { BrowserConnection } from 'firefox-profiler/app-logic/browser-connection';
23-
import { assertExhaustiveCheck } from 'firefox-profiler/utils/flow';
23+
import { assertExhaustiveCheck } from 'firefox-profiler/utils/types';
2424
import explicitConnect from 'firefox-profiler/utils/connect';
2525

2626
import type { ConnectedProps } from 'firefox-profiler/utils/connect';

src/components/app/CodeErrorOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
import { assertExhaustiveCheck } from 'firefox-profiler/utils/flow';
5+
import { assertExhaustiveCheck } from 'firefox-profiler/utils/types';
66
import type { SourceCodeLoadingError } from 'firefox-profiler/types';
77
import { Localized } from '@fluent/react';
88

src/components/app/CodeLoadingOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
import { assertExhaustiveCheck } from 'firefox-profiler/utils/flow';
5+
import { assertExhaustiveCheck } from 'firefox-profiler/utils/types';
66
import { Localized } from '@fluent/react';
77
import type { CodeLoadingSource } from 'firefox-profiler/types/state';
88

0 commit comments

Comments
 (0)