Skip to content

Commit 36c6d24

Browse files
committed
fix: export runtime types
allows to do: ```typescript import type { Strapi4RequestParams } from "@nuxtjs/strapi"; const useProducts = (filters: StrapiRequestParams['filters']) => useStrapi(...) ```
1 parent 2778cfa commit 36c6d24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { defineNuxtModule, addImportsDir, addPlugin, createResolver, extendViteC
33
import type { CookieOptions } from 'nuxt/app'
44
import { joinURL } from 'ufo'
55

6+
export type * from './runtime/types'
7+
68
export interface AuthOptions {
79
populate?: string | string[]
810
fields?: string | string[]

0 commit comments

Comments
 (0)