-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(protobuf): update protobuf definitions (display type enum added) #15588
Conversation
8138dee
to
c6ea629
Compare
🚀 Expo preview is ready!
|
c6ea629
to
8f13b82
Compare
f44d36b
to
0d5861f
Compare
packages/protobuf/src/index.ts
Outdated
@@ -5,4 +5,4 @@ export * from './types'; | |||
export { parseConfigure, createMessageFromName, createMessageFromType } from './utils'; | |||
export * as MessagesSchema from './messages-schema'; | |||
// It's problem to reexport enums when they are under MessagesSchema namespace, check packages/connect/src/types/device.ts | |||
export { DeviceModelInternal } from './messages-schema'; | |||
export { DeviceModelInternal, DisplayRotation, Enum_DisplayRotation } from './messages-schema'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the way we want to export these? cc @martykan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know... DeviceModelInternal
seems important enough to re-export separately, but I don't think it's the best approach for every single enum.
If we want to re-export in device.ts
something like this should work:
export type DisplayRotation = PROTO.DisplayRotation;
packages/connect/src/types/device.ts
Outdated
@@ -147,7 +147,7 @@ export type UnreadableDevice = BaseDevice & { | |||
export type Device = KnownDevice | UnknownDevice | UnreadableDevice; | |||
export type Features = PROTO.Features; | |||
|
|||
export { DeviceModelInternal } from '@trezor/protobuf'; | |||
export { DeviceModelInternal, Enum_DisplayRotation, DisplayRotation } from '@trezor/protobuf'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the export of the underscored value seems odd, but if its intentional 🤷
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/12050522421 |
Rebasing failed, please rebase manually. |
packages/suite/src/views/settings/SettingsDevice/DisplayRotation.tsx
Outdated
Show resolved
Hide resolved
9067a82
to
812bb14
Compare
812bb14
to
a882b45
Compare
No description provided.