Skip to content
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

feat!: remove deprecated renderer option defaultTagsForRequiredProps #166

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

mrgrain
Copy link
Owner

@mrgrain mrgrain commented Nov 18, 2023

BREAKING CHANGE: deprecated renderer option defaultTagsForRequiredProps has been removed. Use .map() on the struct to remove the default doc tag based on a condition. See PR for an example.

declare const struct: Struct;

struct.map(property => {
  if (!property.optional) {
    delete property.docs?.default;
  }
  return property;
});

BREAKING CHANGE: deprecated renderer option `defaultTagsForRequiredProps` has been removed. Use `.map()` on the struct to remove the default doc tag based on a condition.
@mergify mergify bot merged commit 57002ec into main Nov 18, 2023
9 checks passed
@mergify mergify bot deleted the mrgrain/feat/deprecations branch November 18, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant