-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move exported types from package entry point into a separate f…
…ile (#2323)
- Loading branch information
Showing
14 changed files
with
55 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@commercetools-frontend/actions-global': patch | ||
'@commercetools-frontend/application-shell-connectors': patch | ||
'@commercetools-frontend/browser-history': patch | ||
'@commercetools-frontend/i18n': patch | ||
'@commercetools-frontend/react-notifications': patch | ||
--- | ||
|
||
Move exported types into a separate file, to avoid having type imports/exports in the package entry point. | ||
|
||
> This change is only useful in development in the merchant-center-application-kit repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { DispatchActionError } from './actions/handle-action-error'; | ||
|
||
export type TDispatchActionError = DispatchActionError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import type { DispatchActionError } from './actions/handle-action-error'; | ||
|
||
export type TDispatchActionError = DispatchActionError; | ||
|
||
export { default as version } from './version'; | ||
export * from './actions'; | ||
export * from './hooks'; | ||
export * from './types'; | ||
|
||
export { default as version } from './version'; | ||
export * from './export-types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { | ||
TProviderProps as ProviderProps, | ||
TApplicationContext as ApplicationContext, | ||
TNormalizedMenuVisibilities as NormalizedMenuVisibilities, | ||
TNormalizedPermissions as NormalizedPermissions, | ||
TNormalizedActionRights as NormalizedActionRights, | ||
TNormalizedDataFences as NormalizedDataFences, | ||
} from './components/application-context'; | ||
|
||
export type TProviderProps<AdditionalEnvironmentProperties extends {}> = | ||
ProviderProps<AdditionalEnvironmentProperties>; | ||
export type TApplicationContext<AdditionalEnvironmentProperties extends {}> = | ||
ApplicationContext<AdditionalEnvironmentProperties>; | ||
|
||
export type TNormalizedMenuVisibilities = NormalizedMenuVisibilities; | ||
export type TNormalizedPermissions = NormalizedPermissions; | ||
export type TNormalizedActionRights = NormalizedActionRights; | ||
export type TNormalizedDataFences = NormalizedDataFences; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import type { EnhancedLocation } from 'history-query-enhancer'; | ||
|
||
// Convenience types | ||
export type TEnhancedLocation<Q extends {}> = EnhancedLocation<Q>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
// eslint-disable-next-line import/named | ||
import type { EnhancedLocation } from 'history-query-enhancer'; | ||
|
||
export { default as version } from './version'; | ||
export * from './export-types'; | ||
|
||
export { default, createEnhancedHistory } from './enhanced-history'; | ||
|
||
// Convenience types | ||
export type TEnhancedLocation<Q extends {}> = EnhancedLocation<Q>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { Props } from './async-locale-data/async-locale-data'; | ||
|
||
export type TAsyncLocaleDataProps = Props; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export { default as version } from './version'; | ||
export * from './types'; | ||
|
||
export { default as middleware } from './middleware'; | ||
export { default as reducer } from './reducer'; | ||
export { addNotification, removeNotification } from './action-creators'; | ||
export { ADD_NOTIFICATION, REMOVE_NOTIFICATION } from './action-types'; | ||
export * from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import type { TProps as MapNotificationToComponentProps } from './components/map-notification-to-component'; | ||
|
||
// Re-export type for convenience | ||
export type TMapNotificationToComponentProps = MapNotificationToComponentProps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a0e1cd7
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.
Successfully deployed to the following URLs: