-
Notifications
You must be signed in to change notification settings - Fork 57
refactor(common): B2B-3967 Fix global types, use regular imports #637
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
base: main
Are you sure you want to change the base?
Conversation
| type B3RequestType = typeof B3Request; | ||
| export default B3Request; | ||
|
|
||
| export type { B3RequestType }; |
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.
expose the type to avoid importing the real thing...
| setOpenPage: SetOpenPage; | ||
| } | ||
|
|
||
| export interface FormattedQuoteItem |
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.
These were accidentally deleted when knip was introduced. TSC/knip doesn't consider import('@something').SomeType as used.
They are straight copies from the old types.
| | 'wordpress' | ||
| | 'custom'; | ||
| declare global { | ||
| /** @deprecated Please avoid using this interface */ |
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.
Added a deprecation warning to these.
Use regular imports so the types in `src/index.d.ts` are checked by the TS compiler. The previous imports were not being checked.
e22e040 to
8e93b92
Compare
Jira: B2B-3967
What/Why?
Fix global types, use regular imports
Use regular imports so the types in
src/index.d.tsare checked by the TS compiler. The previous imports were not being checked.Rollout/Rollback
Revert
Testing
These are only type changes, TS should be able to check.