FeatureFuel
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_

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests