-
Notifications
You must be signed in to change notification settings - Fork 277
Add typekit to list types under a container (namespace/interface) #7391
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
base: main
Are you sure you want to change the base?
Conversation
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.
this file is also in the wrong location
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.
Moved the type-utils.test.ts file to the correct location in the test directory and updated imports in 9a633f8.
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.
this should be added to packages/compiler/test/typekit/type.test.ts
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've moved the test file to packages/compiler/test/typekit/type.test.ts
in b4d3801.
Co-authored-by: timotheeguerin <[email protected]>
Co-authored-by: timotheeguerin <[email protected]>
This PR adds a new utility function to the typekit that allows listing all types under a container (namespace or interface) that match a specific filter criteria.
The new function is implemented as:
This utility provides a consistent way to list types under a namespace or interface and apply a filter to find types with specific characteristics, which is a common need in libraries consuming TypeSpec types.
Example usage
The implementation is based on the pattern used by
listOperationsIn
helper, but generalized to work with any type category.Fixes #7367.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.fwupd.org
/usr/bin/fwupdmgr refresh
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.