-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: add tests for old api #622
refactor: add tests for old api #622
Conversation
Kudos, SonarCloud Quality Gate passed! |
@@ -39,7 +39,7 @@ export enum SchemaTypesToIterate { | |||
|
|||
export type TraverseOptions = { | |||
callback: TraverseCallback | |||
schemaTypesToIterate: SchemaTypesToIterate[] | |||
schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; |
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.
I'm lost on this 😆 Is this the preferable way? Or it was a bug?
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.
It's an interpolation of enum values as union. Feature in the TS 4.1, so you can put schemaTypesToIterate
as array of normal string (but with values from enum) or SchemaTypesToIterate
signature for given enum value.
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.
LGTM! 🚀🌔
/rtm |
Description
cc @smoya
Related issue(s)
Part of #481
Part of #482