5
Add types to @directus/extensions-sdk
Source: directus/directus#25185 · opened by @akfrolov
Summary
Typings decrease time-to-market and improve developer experience. SDK in current form is not intuitive after using @directus/sdk.
Basic Example
_No response_
Motivation
Improve DX for new and experienced Directus extensions developers alike. Time to develop first extension should drastically decrease.
Detailed Design
[ to types example).
I have prepared types for my use case with help of LLM. They could be improved further.
Requirements List
Must Have:
• Strong documentation (how to use)
• Types
Should Have:
• Types description for IDEs
Could Have:
• API documentation on website
Won't Have:
• ?
Drawbacks
I see no severe drawbacks except for time needed to implement this.
Alternatives
Lefting out types makes TypeScript version meaningless.
Adoption Strategy
This is not a breaking change. However, documentation should be updated.
Unresolved Questions
_No response_
Typings decrease time-to-market and improve developer experience. SDK in current form is not intuitive after using @directus/sdk.
Basic Example
_No response_
Motivation
Improve DX for new and experienced Directus extensions developers alike. Time to develop first extension should drastically decrease.
Detailed Design
[ to types example).
I have prepared types for my use case with help of LLM. They could be improved further.
Requirements List
Must Have:
• Strong documentation (how to use)
• Types
Should Have:
• Types description for IDEs
Could Have:
• API documentation on website
Won't Have:
• ?
Drawbacks
I see no severe drawbacks except for time needed to implement this.
Alternatives
Lefting out types makes TypeScript version meaningless.
Adoption Strategy
This is not a breaking change. However, documentation should be updated.
Unresolved Questions
_No response_
No pledges yet. Be the first to back this.
Comments
Similar requests
@directus/types (Item-) Types missing
1 vote · 0 comments
Directus Loader for Astro Content Layer
41 votes · 0 comments
Ability to login to directus using access token of a configured provider.
2 votes · 0 comments
Why Isn't Directus Gaining More Attention in Mobile App Development?
10 votes · 0 comments
Activity Feed Presets and Bookmarks Missing
1 vote · 0 comments
No comments yet.