Skip to content

Add new way to define decorator implementation with $decorators export #4139

Merged
timotheeguerin merged 24 commits intomicrosoft:mainfrom
timotheeguerin:decorators-export
Aug 12, 2024
Merged

Add new way to define decorator implementation with $decorators export #4139
timotheeguerin merged 24 commits intomicrosoft:mainfrom
timotheeguerin:decorators-export

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

fix #3719

@azure-sdk
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Copy link
Copy Markdown
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.

@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
@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