-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: added operand type to ConditionalStudioComponentProperty #335
fix: added operand type to ConditionalStudioComponentProperty #335
Conversation
dac16b2
to
d6a3b8e
Compare
} from '../react-component-render-helper'; | ||
|
||
import { assertASTMatchesSnapshot } from './__utils__/snapshot-helpers'; | ||
|
||
Error.stackTraceLimit = Infinity; |
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.
Can probably remove this.
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.
removed
default: | ||
return factory.createStringLiteral(operand); |
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 think I'd prefer to leave this behavior as-is for now. Is there a need to change this?
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.
default behavior restored. There was no particular need for the change
return valueToJsxLiteral(operand); | ||
} | ||
|
||
function valueToCorrectLiteral(value: any, valueType: string): PrimaryExpression { |
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.
perhaps rename to typedValueToLiteral
?
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.
fixed naming to distinguish between the two functions better
d6a3b8e
to
127b66f
Compare
Looks good Kevin, once our functional tests complete I'll merge into |
Description of changes: