FeatureFuel
1

Missing type of services in ApiExtensionContext

Source: directus/directus#24870 · opened by @Zehir
Describe the Improvement


Hello,

Long story short, it's started from defineHook, in the provided context the property services from which one we get the complete app is missing his type.

The any is located here :


In my extension I was able to load the type definition with :

Edit : Work in editor but can't build it

Even if it's working it's confusing me because of the package.json definition;



I don't understand why the /dist is required.
I tried to do a PR to fix this but I don't know enought the codebase to do it. I tried to import it in the @directus/types packages but got no success with it.

Thanks

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