-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f633ea
commit 5088d75
Showing
2 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
type errorPlacementValue = 'top' | 'bottom'; | ||
interface flagsType { | ||
ERROR_PLACEMENT_DEFAULT: errorPlacementValue | ||
} | ||
|
||
// featureFlags.js | ||
const flags: flagsType = { | ||
ERROR_PLACEMENT_DEFAULT: 'top', | ||
}; | ||
|
||
export function errorPlacementDefault(): errorPlacementValue { | ||
return flags.ERROR_PLACEMENT_DEFAULT; | ||
} | ||
|
||
export function setErrorPlacementDefault(value: errorPlacementValue): void { | ||
flags.ERROR_PLACEMENT_DEFAULT = value; | ||
} |