generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rainbow-sprinkles): reorganize the types in
ChildSprinkle
so th…
…at it checks for static+dynamic properties before checking for one or the other. (#169) Previously in the `ChildSprinkle` type, TypeScript would match a dynamic+static property to the `DynamicProperty` type before it had a chance to evaluate whether it matched the `StaticDynamicProperty` type instead. This would result in IDEs only suggesting the dynamic values of a given property, instead of both the static values AND the dynamic values. We need to check whether the property extends `StaticDynamicProperty` first, and THEN fall back to check for the other types. Co-authored-by: Scott Robertson <srobertson@dropbox.com> Co-authored-by: Rogin Farrer <rogin@roginfarrer.com>
- Loading branch information
1 parent
ff06338
commit 54915d1
Showing
3 changed files
with
82 additions
and
42 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,5 @@ | ||
--- | ||
"rainbow-sprinkles": patch | ||
--- | ||
|
||
Fix an issue where conditionless properties that have both static and dynamic values wouldn't provide autocomplete suggestions for the static values. |
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