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

Add PickProperties type and @withPickedProperties decorator #3488

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

elliots
Copy link
Contributor

@elliots elliots commented May 31, 2024

Add PickProperties based on OmitProperties

Based on #3484 (comment) you may not be wanting more mutating decorators, but PR is here if it's ok.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jun 3, 2024

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Add PickProperties type to dynamically select a subset of a model

@timotheeguerin
Copy link
Member

/azp run typespec - pr tools

@microsoft microsoft deleted a comment from azure-pipelines bot Jun 3, 2024
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3488/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3488/

@elliots elliots force-pushed the pick-properties branch 2 times, most recently from 06612d0 to 1077f29 Compare June 6, 2024 02:06
@timotheeguerin
Copy link
Member

/azp run typespec - pr tools

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@timotheeguerin timotheeguerin left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!!

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.

None yet

3 participants