Skip to content

Commit

Permalink
fix: export runtime types
Browse files Browse the repository at this point in the history
allows to do:

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

const useProducts = (filters: StrapiRequestParams['filters']) => useStrapi(...)
```
  • Loading branch information
tennox committed Mar 27, 2024
1 parent 2778cfa commit 36c6d24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { defineNuxtModule, addImportsDir, addPlugin, createResolver, extendViteC
import type { CookieOptions } from 'nuxt/app'
import { joinURL } from 'ufo'

export type * from './runtime/types'

export interface AuthOptions {
populate?: string | string[]
fields?: string | string[]
Expand Down

0 comments on commit 36c6d24

Please sign in to comment.