Skip to content

Conversation

@icatalina
Copy link
Contributor

@icatalina icatalina commented Nov 14, 2025

Jira: B2B-3967

What/Why?

Fix global types, use regular imports

Use regular imports so the types in src/index.d.ts are 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.

@icatalina icatalina requested a review from a team as a code owner November 14, 2025 15:36
type B3RequestType = typeof B3Request;
export default B3Request;

export type { B3RequestType };
Copy link
Contributor Author

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
Copy link
Contributor Author

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 */
Copy link
Contributor Author

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.
@icatalina icatalina force-pushed the icatalina/B2B-3967/fix-types-src-index-d-ts branch from e22e040 to 8e93b92 Compare November 14, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants