From d22cde266bebba4174cde61677902a3f5528ee01 Mon Sep 17 00:00:00 2001 From: larryrider Date: Tue, 15 Apr 2025 13:27:21 +0200 Subject: [PATCH] export types in fxp.d.ts for better module usability --- src/fxp.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fxp.d.ts b/src/fxp.d.ts index 2e8287e7..5962a466 100644 --- a/src/fxp.d.ts +++ b/src/fxp.d.ts @@ -1,4 +1,4 @@ -type X2jOptions = { +export type X2jOptions = { /** * Preserve the order of tags in resulting JS object * @@ -218,14 +218,14 @@ type X2jOptions = { captureMetaData?: boolean; }; -type strnumOptions = { +export type strnumOptions = { hex: boolean; leadingZeros: boolean, skipLike?: RegExp, eNotation?: boolean } -type validationOptions = { +export type validationOptions = { /** * Whether to allow attributes without value * @@ -241,7 +241,7 @@ type validationOptions = { unpairedTags?: string[]; }; -type XmlBuilderOptions = { +export type XmlBuilderOptions = { /** * Give a prefix to the attribute name in the resulting JS object * @@ -395,7 +395,7 @@ type XmlBuilderOptions = { type ESchema = string | object | Array; -type ValidationError = { +export type ValidationError = { err: { code: string; msg: string,