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
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.
Comments
Similar requests
Improve type definitions for the extensions sdk
37 votes · 0 comments
Directus Extension (Integration) Testing Mocked Services
2 votes · 0 comments
Add types to @directus/extensions-sdk
5 votes · 0 comments
Add the abillity to select type of relation field in many to any relation
2 votes · 0 comments
Add System Services to Sandbox SDK
1 vote · 0 comments
No comments yet.