Skip to content

Commit 37b0939

Browse files
committed
api types [nfc]: Un-indirect some imports
This is a better pattern for reducing import cycles. The explicitness also seems helpful to the reader, though there isn't a big difference.
1 parent 1eca694 commit 37b0939

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/api/initialDataTypes.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* @flow strict-local */
22

3-
import type { CustomProfileField, UserStatusUpdate, UserSettings } from './modelTypes';
43
import type {
54
CrossRealmBot,
5+
CustomProfileField,
66
MutedTopicTuple,
77
MutedUser,
88
PresenceSnapshot,
@@ -15,7 +15,9 @@ import type {
1515
User,
1616
UserGroup,
1717
UserId,
18-
} from './apiTypes';
18+
UserSettings,
19+
UserStatusUpdate,
20+
} from './modelTypes';
1921
import type {
2022
CreatePublicOrPrivateStreamPolicyT,
2123
CreateWebPublicStreamPolicy,

0 commit comments

Comments
 (0)