-
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-zone)!: rework properties to avoid impossible states
BREAKING CHANGE: the properties have changed - `state`: new property containing the whole state - `zone`: property has been deleted as it is now part of the state
- Loading branch information
1 parent
da42a08
commit 9e9dceb
Showing
4 changed files
with
103 additions
and
26 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 |
---|---|---|
@@ -1 +1,13 @@ | ||
type ZoneModeType = "default" | "small" | "small-infra"; | ||
import { Zone } from '../common.types.js'; | ||
|
||
export type ZoneState = ZoneStateLoaded | ZoneStateLoading; | ||
|
||
export interface ZoneStateLoaded extends Zone { | ||
type: 'loaded'; | ||
} | ||
|
||
export interface ZoneStateLoading { | ||
type: 'loading' | ||
} | ||
|
||
export type ZoneModeType = 'default' | 'small' | 'small-infra'; |
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