Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module): export runtime types #403

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

tennox
Copy link
Contributor

@tennox tennox commented Mar 27, 2024

Fixes #379
allows to do:

import type { Strapi4RequestParams } from "@nuxtjs/strapi";

const useProducts = (filters: StrapiRequestParams['filters']) => useStrapi(...)

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

allows to do:

```typescript
import type { Strapi4RequestParams } from "@nuxtjs/strapi";

const useProducts = (filters: StrapiRequestParams['filters']) => useStrapi(...)
```
Copy link

netlify bot commented Mar 27, 2024

👷 Deploy request for nuxt-strapi-module pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 36c6d24

@benjamincanac benjamincanac changed the title fix: export runtime types fix(module): export runtime types Mar 27, 2024
@benjamincanac benjamincanac merged commit d0f8416 into nuxt-modules:dev Mar 27, 2024
1 check passed
@benjamincanac benjamincanac mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when Typing request parameters variable (Strapi4RequestParams)
2 participants