From 11677480dc6f56d4a1485ad0a59ac726a36dc01e Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Mon, 11 Nov 2024 16:25:45 +0100 Subject: [PATCH] fix: compatibility with Typescript V4 With https://github.com/uuidjs/uuid/pull/833 the type export was added, but the `export type *` syntax is only available since Typescript V5. Using direct imports should resolve the issue. --- src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d7d4edc3..63741eee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,10 @@ -export type * from './types.js'; +export type { + UUIDTypes, + Version1Options, + Version4Options, + Version6Options, + Version7Options, +} from './types.js'; export { default as MAX } from './max.js'; export { default as NIL } from './nil.js'; export { default as parse } from './parse.js';