-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cc-matomo-info)!: rework properties to avoid impossible states
BREAKING CHANGE: the properties have changed - `state`: new property containing the whole state - `matomoLink`: property has been deleted as it is now part of the state as `matomoUrl` - `mysqlLink`: property has been deleted as it is now part of the state as `mysqlUrl` - `phpLink`: property has been deleted as it is now part of the state as `phpUrl` - `redisLink`: property has been deleted as it is now part of the state as `redisUrl` - `error`: property has been deleted as it is now part of the state
- Loading branch information
1 parent
771dbe8
commit cbfc1f7
Showing
3 changed files
with
102 additions
and
45 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
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,17 @@ | ||
export type MatomoInfoState = MatomoInfoStateLoaded | MatomoInfoStateLoading | MatomoInfoStateError; | ||
|
||
export interface MatomoInfoStateLoaded { | ||
type: 'loaded'; | ||
matomoUrl: string; | ||
mysqlUrl: string; | ||
phpUrl: string; | ||
redisUrl: string; | ||
} | ||
|
||
export interface MatomoInfoStateLoading { | ||
type: 'loading'; | ||
} | ||
|
||
export interface MatomoInfoStateError { | ||
type: 'error'; | ||
} |