Skip to content

Template dev tools: Print the type of the response and stringify objects#7439

Merged
bramkragten merged 2 commits intodevfrom
return-type-template-stringify
Oct 22, 2020
Merged

Template dev tools: Print the type of the response and stringify objects#7439
bramkragten merged 2 commits intodevfrom
return-type-template-stringify

Conversation

@bramkragten
Copy link
Member

@bramkragten bramkragten commented Oct 22, 2020

Proposed change

Now that not every template result comes back as a string, we print the type of the result and stringify objects.

image

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

error: Boolean(this._error),
[resultType]: resultType,
})}"
><!-- display: block -->${this._error}${type === "object"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's with this comment ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is for prettier... it fucks up the lines in the pre

@bramkragten bramkragten merged commit 174f8f5 into dev Oct 22, 2020
@bramkragten bramkragten deleted the return-type-template-stringify branch October 22, 2020 21:51
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tuples incorrectly rendered in developer-tools/template for 0.117.0b1

4 participants