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 new way to define decorator implementation with $decorators export #4139

Merged
merged 24 commits into from
Aug 12, 2024

Conversation

timotheeguerin
Copy link
Member

fix #3719

@azure-sdk
Copy link
Collaborator

azure-sdk commented Aug 9, 2024

All changed packages have been documented.

  • @typespec/bundler
  • @typespec/compiler
  • @typespec/http
  • @typespec/json-schema
  • @typespec/openapi
  • @typespec/openapi3
  • @typespec/protobuf
  • @typespec/rest
  • @typespec/versioning
  • @typespec/xml
Show changes

@typespec/bundler - fix ✏️

Allow bundling libraries that don't import their main file from the TypeSpec

@typespec/compiler - feature ✏️

Add new way to define decorator implementation with $decorators export.,> ts,> export const $decorators = {,> "TypeSpec.OpenAPI": {,> useRef: $useRef,,> oneOf: $oneOf,,> },,> };,>

@typespec/http - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/json-schema - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/openapi - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/openapi3 - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/protobuf - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/rest - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/versioning - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@typespec/xml - feature ✏️

Internals: Migrate to new api for declaring decorator implementation

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

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

This looks great - I also really like the new separation you added with tsp-index.ts in the library packages.

docs/extending-typespec/create-decorators.md Show resolved Hide resolved
@timotheeguerin timotheeguerin added this pull request to the merge queue Aug 12, 2024
Merged via the queue into microsoft:main with commit 75e773c Aug 12, 2024
22 checks passed
@timotheeguerin timotheeguerin deleted the decorators-export branch August 12, 2024 19:35
sarangan12 pushed a commit to sarangan12/typespec that referenced this pull request Sep 16, 2024
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.

Cannot name a decorator flags lib linter or onEmit (special exports)
3 participants