From fef4c4f1e6e1e048743b4d33904c187f0affe07b Mon Sep 17 00:00:00 2001 From: Till Davin Date: Fri, 28 Jun 2024 09:34:34 +0200 Subject: [PATCH] fix: add runtime types to type exports --- package.json | 2 +- src/module.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d9199d92..e471745d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ".": { "import": "./dist/module.mjs", "require": "./dist/module.cjs", - "types": "./dist/runtime/types/index.d.ts" + "types": "./dist/types.d.ts" } }, "main": "./dist/module.cjs", diff --git a/src/module.ts b/src/module.ts index ad417c90..c9b865c5 100644 --- a/src/module.ts +++ b/src/module.ts @@ -5,6 +5,8 @@ import { defineNuxtModule, addPlugin, addImportsDir } from '@nuxt/kit' import { joinURL } from 'ufo' import { DirectusQueryParams } from './runtime/types' +export type * from './runtime/types' + export interface ModuleOptions { /** * Directus API URL