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: support format option in custom type models #16

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

angeloashmore
Copy link
Member

@angeloashmore angeloashmore commented Apr 9, 2024

Types of changes

  • Chore (a non-breaking change which is related to package maintenance)
  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

This PR adds support for the format option in custom type models.

const mock = createMockFactory();
mock.value.customType({ format: "page" });

If no format value is provided, a pseduo-random one is selected.

Checklist:

  • My change requires an update to the official documentation.
  • All TSDoc comments are up-to-date and new ones have been added where necessary.
  • All new and existing tests are passing.

Copy link

github-actions bot commented Apr 9, 2024

size-limit report 📦

Path Size
dist/index.js 12.35 KB (+0.19% 🔺)
dist/index.cjs 20.78 KB (+0.12% 🔺)

@angeloashmore angeloashmore merged commit 3b72c7f into main Apr 9, 2024
1 check passed
@angeloashmore angeloashmore deleted the aa/customType-format branch April 9, 2024 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant