Pinelab-studio / pinelab-vendure-plugins

Monorepo for different Vendure plugins developed by Pinelab
111 stars 49 forks source link

Accept Blue declare module statement does not get exported #494

Open mschipperheyn opened 3 months ago

mschipperheyn commented 3 months ago

Which plugin/repository is the issue about? accept-blue

Describe the bug The declare module statement that is present in the accept-blue plugin does not seem to get picked up. This makes it problematic to access the customFields keys in service methods. Even importing the AcceptBlue Plugin as part of the plugin where you are accessing it, does not help. Also tried adding the node_modules/@pinelab to tsConfig typeRoots. Perhaps there is something else I need to do?

To Reproduce Steps to reproduce the behavior:

  1. Access the acceptBlueSubscriptionIds in a service method
  2. See error

Expected behavior I would expect the declare module statements to be exported in a way that allows for it to get picked up by the type system in a convenient way or if not, for that to be documented

Screenshots If applicable, add screenshots to help explain your problem.

Environment

martijnvdbrug commented 1 week ago

To be honest, I am not sure how to accomplish this. I did include the type declaration file in the package in this PR (v1.9.0), but couldn't get it to work in a consumer project yet...