From b6d3e47f42be1943ee2007c47840262532062969 Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Tue, 14 Jan 2025 12:23:39 +0100 Subject: [PATCH] fix: export module types resolves #61 --- package.json | 3 ++- src/module.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 25cefc3..2e335fc 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "exports": { ".": { "import": "./dist/module.mjs", - "require": "./dist/module.cjs" + "require": "./dist/module.cjs", + "types": "./dist/types.d.ts" } }, "main": "./dist/module.cjs", diff --git a/src/module.ts b/src/module.ts index 815b3ac..f6f1c83 100644 --- a/src/module.ts +++ b/src/module.ts @@ -16,6 +16,7 @@ import { loadExternalSources } from './loader' import type { NuxtComponentMeta } from './types' export * from './options' +export type * from './types.d' const slotReplacer = (_: unknown, _before: string, slotName: string, _rest: unknown) => `